Results 1 to 1 of 1

Thread: Using Japanese Characters in flash with XML

  1. #1
    Join Date
    Mar 2008
    Posts
    46
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Using Japanese Characters in flash with XML

    It worked when I changed my font to a _sans


    Hello!
    I am running into a bit of a wall here.
    I have built a website that pulls languages from multiple XML sources.
    I have been able to do Russian, Spanish, French, English and Italian, now I am stuck on Japanese.

    This AS calls the XML text:

    stop();
    my_xml = new XML();
    my_xml.load("xml/jp/jp_dive_text_galleries.xml");
    my_xml.onLoad = my_function;
    my_xml.ignoreWhite = 1;

    function my_function() {
    acc_mc.accomodations.html = true;
    acc_mc.accomodations.htmlText = my_xml.firstChild.childNodes[0].firstChild.nodeValue;
    system.useCodepage = true;
    }

    Here is a short example of my XML file:
    <?xml version="1.0" encoding= "UTF-8" ?>
    <texts>
    <text><![CDATA[<b><font size="18">情報および予約</font></b>]]></text>
    </texts>

    In my flash file, I embedded the following characters in my dynamic text box:
    Numerals (0..9)
    Punctuation...
    Basic Latin...
    Japanese Kana...
    Japanese Kanji..
    Japanese all...

    When I publish and post live, I see boxes this in place of my japanese characters:

    Strangely, when I just copied and pasted the boxes from my dynamic text box into this document, they showed up in Japanese...
    I am doing something wrong!

    Any input would be greatly appreciated!
    Cheers
    Zack
    Last edited by zeech26; 08-05-2009 at 05:58 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •