I created a .swf file on Windows which dynmically loads an external xml file for photo slideshow. Now I am testing the swf file on fedora 10, which has the default encoding utf-8.
The xml file goes like:
<?xml version=“1.0” encoding=“utf-8” standalone=“yes”?>
<images>
<pic>
<image>中文.jpg</image>
<caption>中文测试</caption>
<thumbnail>中文_缩略图.jpg</thumbnail>
</pic>
<pic>
<image>English.jpg</image>
<caption>English test</caption>
<thumbnail>English_thumbnail.jpg</thumbnail>
</pic>
</images>
There is no problem reading the xml file which is encoded utf-8 as well. The caption in Chinese is displayed very well. However, the <image> and <thumbnail> files in Chinese can not be read. Strangely, if I set System.useCodepage to true, the above two files can be read but the Caption in Chinese is not displayed correctly. It is really a dilemma as for setting System.useCodepage in the .swf file.
Could anybody help me out with reading Chinese files? How does flash read files in differentt encoding? (Note that the filenames on fedora are all encoded in utf-8 as the locale LANG is en_US.UTF-8.)