Hakuci tags: Flash, XML, Chinese garbled characters
How to avoid displaying Chinese characters or garbled characters when interacting with XML in Flash
1. Remove all system. usecodepage = true;
Many people cannot tell Chinese characters.Code, System. usecodepage = true; System encoding is used instead of eliminating garbled characters. if the system is gb2312 and you load gb2312, it will not be garbled. But what if there is Korean load ?? The result is still garbled.
2, XML with UTF-8 encoding, file storage also uses UTF-8 Encoding
It is a good habit to use UTF-8 encoding to display Chinese characters normally without garbled characters due to English or other characters.
3. are dynamic text embedded characters?
Select the dynamic text of Chinese characters that cannot be normally displayed in FLA. Click the "embed" button on the property panel to open the Embedded Panel and find that embedded characters are set, click "Do not embed" in the lower left corner of the embedded panel ..
PS: Many people can embed Chinese characters when they do not display Chinese characters. This method is very effective in their spare time, but the drawback is that your Flash files have been expanded several times. This method is really undesirable!
4. Check whether the text box font supports displaying Chinese characters.
Many people have changed the source code from outside China. After making the changes to the above points, they find that they still cannot be displayed. A careful friend can check whether the text font supports Chinese characters, therefore, we recommend that you change it to a standard font such as "Al" or "Arial!