A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: XML encoding

  1. #1
    Junior Member
    Join Date
    Apr 2002
    Posts
    2

    Post

    I have a problem with XML file into The MM Tree Menu.
    Is it possible too use Scandinavian letters as O with al slash "ø" in the menu ?

    I have tried to write this:
    xml version="1.0" encoding="UTF-16" standalone="yes"
    line in the XML file but the MM Tree menu is not working.

    Is this a mac problem ??

    Regards
    [Edited by free_your_dog on 04-02-2002 at 04:49 PM]

  2. #2
    Junior Member
    Join Date
    Apr 2002
    Posts
    6

    same problem

    I have got the same problem on PC. I cannot read any danish carhacters from my XML files...

  3. #3
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    Hi,

    You guys seem to be in the same boat as the guys here:

    http://board.flashkit.com/board/show...hreadid=284145




    And a few others trying to encode Greek/Italian/Others into XML.

    Have a look at the thread above for some hints.

    Looks like another FAQ topic is needed.

    Thanks

    Luke

  4. #4
    Junior Member
    Join Date
    Apr 2002
    Posts
    6
    Tubbs - Actually this is a kind of funny. I tried to email you earlier on but my SMTP is down.

    I found a solution to the problem!!

    I saw you participate in a question about "Special scandinavian characters" and I have actually been looking for the same answer for a week or two. Your answer was that Flash's Xml parser have got a bad habbit with languages.

    Actually I just found a solution. Take the Xml file with the special characters into to notepad and "save as" UTF-8 - Then the folloing will work.

    <?xml version="1.0" encoding="ISO-8859-1"?> <title>nyheder</title> <nyheder> <overskrift>hej æøå</overskrift> <tekst>Tekst med æøå og hele molevitten...</tekst> <brugerNavn>Nikolajdu</brugerNavn>
    <brugerEmail>flasher@nikolajdu.dk</brugerEmail>
    <dato>2002-03-16 15:18:11</dato>
    </nyheder>
    </xml>

    What i do miss now is a way to create Xml files from PHP in that format so that they can come from my database. Anyway is was a huge and very mysterical step.

    Regards from Denmark

    /Nikolaj )

  5. #5
    Junior Member
    Join Date
    Apr 2002
    Posts
    6
    The last part is of course the email I tried to send )

  6. #6
    Junior Member
    Join Date
    Apr 2002
    Posts
    6
    Hmmm. How do I post code in here??

  7. #7
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    < Hint>
    Put a space immediately after the less than symbol in the XML code
    < /Hint>

    Tupps

  8. #8
    Junior Member
    Join Date
    Apr 2002
    Posts
    2

    resolved



    Hi Nikolay

    I have tried to do as you write but no lock !

    My flash file is generate by MX and I am using a 6 player.
    I don't know if you have to write in the Flash file or if you can change language by the XML file as you are so post to do.


    Have you used the MM _Tree_menu with Danish ??

    Regards
    Tonny
    Free_you_dog@yahoo.com



  9. #9
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    The only characters that will appear are the characters in the standard ASCII list of 256 character (Latin 1) or JIS (Japanese). Flash does not understand UniCode nor does it support it.

    If the characters you need are in the standard set you are in luck. Otherwise you will have to find another solution (images or a custom font)

    Thanks

    Luke

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center