# Subtitle Stream Info always returns LanguageCode with 3 characters

**URL:** <https://forums.plex.tv/t/subtitle-stream-info-always-returns-languagecode-with-3-characters/32364>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [April 7, 2013, 2:51pm UTC](https://forums.plex.tv/t/subtitle-stream-info-always-returns-languagecode-with-3-characters/32364 "2013-04-07T14:51:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingargyle](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/kingargyle/32/100618_2.png) [@kingargyle](https://forums.plex.tv/u/kingargyle)\
**Post date:** [April 7, 2013, 2:51pm UTC](https://forums.plex.tv/t/subtitle-stream-info-always-returns-languagecode-with-3-characters/32364/1 "2013-04-07T14:51:26Z")

</div>

When retrieving subtitles, even if they are named with two characters, the languageCode returned is always a three character code. &nbsp;This makes it difficult with Java and in particular Android to correctly detect the language code being used and matching up to the locale.

&nbsp;

Ideally a two character code would be preferable for comparison instances. &nbsp;Another option is to include the 2 character and the 3 character code in the output. &nbsp;This way a lookup table doesn't need to be maintained which can change as the ISO codes change over the years.

&nbsp;

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 11:11pm UTC](https://forums.plex.tv/t/subtitle-stream-info-always-returns-languagecode-with-3-characters/32364/2 "2019-12-20T23:11:21Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
