Originally posted by: FlashTastic
I've had extensive experience with XML and Japanese Characters... the
System.useCodePage method is not reliable as far as I can tell.
As I've discovered. It isn't working in my situation.
What you need to do.. and it's so simple (beleive me, I've tried many other
options).. is to paste the actual text characters right into the XML file and
set the textfield to use a font that has Japanese Unicode support (most
standard fonts can render this).
<sound name="button1">
<!-- Hiragana "A" -->
<character>?</character>
<audio>a.mp3</audio>
</sound>
Im not following you on this.
For my XML file I have this as a line from it:
<song title="Spin" artist="?? ??" path="songs/Spin-Kazuaki_Nagai.mp3"
totaltime="00:0:30"/>
The text field in the main movie is set to _sans font ( so it should render
out japanese characters) and it works
The TEXT FIELDS within the movieclip that is "Exported for Actionscript"
(named playlistItem) are also set with the _sans font, but nothing is showing
up (its blank, nothing, zilcho, zero, non-existent).
So, i'm putting the japanese cahracters right into the XML file, yet one text
field renders it fine (since its on the main timeline) but the text fields
within the "Export for Actionscript" is not observing it.
If that doens't work, you might try using escape characters. This is how I
used to do it, but something changed in flashplayer 8 beta (I can't confirm
this is the problem, but I'm highly suspect) and they no longer work in Mozilla
based browsers. To find the character codes to use, go to
www.unicode.org and
look up the Hiragana and Katakana unicode charts.
<sound name="button1">
<!-- Hiragana "A" -->
<character>あ</character>
<audio>a.mp3</audio>
</sound>
Cheers,
FlashTastic