Creating Multilanguage Text > Unicode encoding formats supported by the Flash Player 6

 

Unicode encoding formats supported by the Flash Player 6

When reading text data in Flash, the Flash Player 6 looks at the first two bytes in the file to detect a byte order mark (BOM), a standard formatting convention used to identify the Unicode encoding format. If no BOM is detected, the text encoding is interpreted as UTF-8 (an 8-bit encoding format).

If either of the following BOMs is detected, the text encoding format is interpreted as described:

If the first byte of the file is OxFE and the second is OxFF, the encoding is interpreted as UTF-16 BE (Big Endian).

If the first byte of the file is OxFF and the second is OxFE, the encoding is interpreted as UTF-16 LE (Little Endian).

Most text editors that can save files in UTF-16BE or LE automatically add the BOMs to the files.

Note: If you set system.useCode page to true, the text is interpreted using the traditional code page of the operating system that is running the player; it is not interpreted as Unicode. See Using external text or XML files that are not Unicode encoded.