Skip to content

Instantly share code, notes, and snippets.

@mmmpa
Created October 20, 2012 14:59
Show Gist options
  • Save mmmpa/3923495 to your computer and use it in GitHub Desktop.
Save mmmpa/3923495 to your computer and use it in GitHub Desktop.
Flash Player and AIR support a subset of the style character set definitions specified by the IANA (http://www.iana.org/assignments/character-sets).
package {
public class CharSetLabel {
public static const ARABIC_ASMO_708:String = 'ASMO-708';
public static const ARABIC_DOS:String = 'DOS-720';
public static const ARABIC_ISO:String = 'iso-8859-6';
public static const ARABIC_MAC:String = 'x-mac-arabic';
public static const ARABIC_WINDOWS:String = 'windows-1256';
public static const BALTIC_DOS:String = 'ibm775';
public static const BALTIC_ISO:String = 'iso-8859-4';
public static const BALTIC_WINDOWS:String = 'windows-1257';
public static const CENTRAL_EUROPEAN_DOS:String = 'ibm852';
public static const CENTRAL_EUROPEAN_ISO:String = 'iso-8859-2';
public static const CENTRAL_EUROPEAN_MAC:String = 'x-mac-ce';
public static const CENTRAL_EUROPEAN_WINDOWS:String = 'windows-1250';
public static const CHINESE_NATIONAL_STANDARD:String = 'gb18030';
public static const CHINESE_SIMPLIFIED_EUC:String = 'EUC-CN';
public static const CHINESE_SIMPLIFIED_GB2312:String = 'gb2312';
public static const CHINESE_SIMPLIFIED_GB18030:String = 'gb18030';
public static const CHINESE_SIMPLIFIED_HZ:String = 'hz-gb-2312';
public static const CHINESE_SIMPLIFIED_MAC:String = 'x-mac-chinesesimp';
public static const CHINESE_TRADITIONAL_BIG5:String = 'big5';
public static const CHINESE_TRADITIONAL_CNS:String = 'x-Chinese-CNS';
public static const CHINESE_TRADITIONAL_ETEN:String = 'x-Chinese-Eten';
public static const CHINESE_TRADITIONAL_MAC:String = 'x-mac-chinesetrad';
public static const CYRILLIC_DOS:String = 'cp866';
public static const CYRILLIC_ISO:String = 'iso-8859-5';
public static const CYRILLIC_KOI8R:String = 'koi8-r';
public static const CYRILLIC_KOI8U:String = 'koi8-u';
public static const CYRILLIC_MAC:String = 'x-mac-cyrillic';
public static const CYRILLIC_WINDOWS:String = 'windows-1251';
public static const EUROPA:String = 'x-Europa';
public static const GERMAN_IA5:String = 'x-IA5-German';
public static const GREEK_DOS:String = 'ibm737';
public static const GREEK_ISO:String = 'iso-8859-7';
public static const GREEK_MAC:String = 'x-mac-greek';
public static const GREEK_WINDOWS:String = 'windows-1253';
public static const GREEK_MODERN_DOS:String = 'ibm869';
public static const HEBREW_DOS:String = 'DOS-862';
public static const HEBREW_ISOLOGICAL:String = 'iso-8859-8-i';
public static const HEBREW_ISOVISUAL:String = 'iso-8859-8';
public static const HEBREW_MAC:String = 'x-mac-hebrew';
public static const HEBREW_WINDOWS:String = 'windows-1255';
public static const IBM_EBCDIC_ARABIC:String = 'x-EBCDIC-Arabic';
public static const IBM_EBCDIC_CYRILLIC_RUSSIAN:String = 'x-EBCDIC-CyrillicRussian';
public static const IBM_EBCDIC_CYRILLIC_SERBIANBULGARIAN:String = 'x-EBCDIC-CyrillicSerbianBulgarian';
public static const IBM_EBCDIC_DENMARKNORWAY:String = 'x-EBCDIC-DenmarkNorway';
public static const IBM_EBCDIC_DENMARKNORWAYEURO:String = 'x-ebcdic-denmarknorway-euro';
public static const IBM_EBCDIC_FINLANDSWEDEN:String = 'x-EBCDIC-FinlandSweden';
public static const IBM_EBCDIC_FINLANDSWEDENEURO:String = 'x-ebcdic-finlandsweden-euro';
public static const IBM_EBCDIC_FRANCEEURO:String = 'x-ebcdic-france-euro';
public static const IBM_EBCDIC_GERMANY:String = 'x-EBCDIC-Germany';
public static const IBM_EBCDIC_GERMANYEURO:String = 'x-ebcdic-germany-euro';
public static const IBM_EBCDIC_GREEK_MODERN:String = 'x-EBCDIC-GreekModern';
public static const IBM_EBCDIC_GREEK:String = 'x-EBCDIC-Greek';
public static const IBM_EBCDIC_HEBREW:String = 'x-EBCDIC-Hebrew';
public static const IBM_EBCDIC_ICELANDIC:String = 'x-EBCDIC-Icelandic';
public static const IBM_EBCDIC_ICELANDICEURO:String = 'x-ebcdic-icelandic-euro';
public static const IBM_EBCDIC_INTERNATIONALEURO:String = 'x-ebcdic-international-euro';
public static const IBM_EBCDIC_ITALY:String = 'x-EBCDIC-Italy';
public static const IBM_EBCDIC_ITALYEURO:String = 'x-ebcdic-italy-euro';
public static const IBM_EBCDIC_JAPANESE_AND_JAPANESE_KATAKANA:String = 'x-EBCDIC-JapaneseAndKana';
public static const IBM_EBCDIC_JAPANESE_AND_JAPANESELATIN:String = 'x-EBCDIC-JapaneseAndJapaneseLatin';
public static const IBM_EBCDIC_JAPANESE_AND_USCANADA:String = 'x-EBCDIC-JapaneseAndUSCanada';
public static const IBM_EBCDIC_JAPANESE_KATAKANA:String = 'x-EBCDIC-JapaneseKatakana';
public static const IBM_EBCDIC_KOREAN_AND_KOREAN_EXTENDED:String = 'x-EBCDIC-KoreanAndKoreanExtended';
public static const IBM_EBCDIC_KOREAN_EXTENDED:String = 'x-EBCDIC-KoreanExtended';
public static const IBM_EBCDIC_MULTILINGUAL_LATIN2:String = 'CP870';
public static const IBM_EBCDIC_SIMPLIFIED_CHINESE:String = 'x-EBCDIC-SimplifiedChinese';
public static const IBM_EBCDIC_SPAIN:String = 'X-EBCDIC-Spain';
public static const IBM_EBCDIC_SPAINEURO:String = 'x-ebcdic-spain-euro';
public static const IBM_EBCDIC_THAI:String = 'x-EBCDIC-Thai';
public static const IBM_EBCDIC_TRADITIONAL_CHINESE:String = 'x-EBCDIC-TraditionalChinese';
public static const IBM_EBCDIC_TURKISH_LATIN5:String = 'CP1026';
public static const IBM_EBCDIC_TURKISH:String = 'x-EBCDIC-Turkish';
public static const IBM_EBCDIC_UK:String = 'x-EBCDIC-UK';
public static const IBM_EBCDIC_UKEURO:String = 'x-ebcdic-uk-euro';
public static const IBM_EBCDIC_USCANADA:String = 'ebcdic-cp-us';
public static const IBM_EBCDIC_USCANADAEURO:String = 'x-ebcdic-cp-us-euro';
public static const ICELANDIC_DOS:String = 'ibm861';
public static const ICELANDIC_MAC:String = 'x-mac-icelandic';
public static const ISCII_ASSAMESE:String = 'x-iscii-as';
public static const ISCII_BENGALI:String = 'x-iscii-be';
public static const ISCII_DEVANAGARI:String = 'x-iscii-de';
public static const ISCII_GUJARATHI:String = 'x-iscii-gu';
public static const ISCII_KANNADA:String = 'x-iscii-ka';
public static const ISCII_MALAYALAM:String = 'x-iscii-ma';
public static const ISCII_ORIYA:String = 'x-iscii-or';
public static const ISCII_PANJABI:String = 'x-iscii-pa';
public static const ISCII_TAMIL:String = 'x-iscii-ta';
public static const ISCII_TELUGU:String = 'x-iscii-te';
public static const JAPANESE_EUC:String = 'euc-jp';
public static const JAPANESE_JIS:String = 'iso-2022-jp';
public static const JAPANESE_JISALLOW_1_BYTE_KANA_SO_SI:String = 'iso-2022-jp';
public static const JAPANESE_JISALLOW_1_BYTE_KANA:String = 'csISO2022JP';
public static const JAPANESE_MAC:String = 'x-mac-japanese';
public static const JAPANESE_SHIFTJIS:String = 'shift_jis';
public static const KOREAN:String = 'ks_c_5601-1987';
public static const KOREAN_EUC:String = 'euc-kr';
public static const KOREAN_ISO:String = 'iso-2022-kr';
public static const KOREAN_JOHAB:String = 'Johab';
public static const KOREAN_MAC:String = 'x-mac-korean';
public static const LATIN_3_ISO:String = 'iso-8859-3';
public static const LATIN_9_ISO:String = 'iso-8859-15';
public static const NORWEGIAN_IA5:String = 'x-IA5-Norwegian';
public static const OEM_UNITED_STATES:String = 'IBM437';
public static const SWEDISH_IA5:String = 'x-IA5-Swedish';
public static const THAI_WINDOWS:String = 'windows-874';
public static const TURKISH_DOS:String = 'ibm857';
public static const TURKISH_ISO:String = 'iso-8859-9';
public static const TURKISH_MAC:String = 'x-mac-turkish';
public static const TURKISH_WINDOWS:String = 'windows-1254';
public static const UNICODE:String = 'unicode';
public static const UNICODE_BIGENDIAN:String = 'unicodeFFFE';
public static const UNICODE_UTF7:String = 'utf-7';
public static const UNICODE_UTF8:String = 'utf-8';
public static const USASCII:String = 'us-ascii';
public static const VIETNAMESE_WINDOWS:String = 'windows-1258';
public static const WESTERN_EUROPEAN_DOS:String = 'ibm850';
public static const WESTERN_EUROPEAN_IA5:String = 'x-IA5';
public static const WESTERN_EUROPEAN_ISO:String = 'iso-8859-1';
public static const WESTERN_EUROPEAN_MAC:String = 'macintosh';
public static const WESTERN_EUROPEAN_WINDOWS:String = 'Windows-1252';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment