A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Special characters and xml

  1. #1
    Hi:

    I have a menu in flash and xml but it is in spanish and im havin problems 'couse flash is not reading the accents and the & or % any ideas, i've already tryied unescaping it.

  2. #2
    Senior Member
    Join Date
    May 2002
    Location
    The Great Northwest
    Posts
    380

    Arrow Nothing special

    Just use this line of code in the begining of your movie.

    Code:
    System.UseCodePage = true;
    I had the same problems and this solved everything. I then just copied and pasted my spanish from word into my XML file and everything was great.

  3. #3
    Thanks,

    That didit worked for me but i got it solved.
    i put this line at the begining of my xml

    <?xml version="1.0" encoding="UTF-16BE"?>

  4. #4
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    the mystery line is:

    < ?xml version="1.0" encoding="UTF-16BE"?>

    without the space at the front.

    Thanks

    Luke

  5. #5
    Member
    Join Date
    Jul 2000
    Location
    Venezuela
    Posts
    86
    Why it dont work for me!

    I save my XML file in unicode or UTF-8 format and nothing happend. And y put this line "System.UseCodePage = true;" at the beginning of my flash and dont work, pliz! you can send me a simple example to my email?

    Thanks!!!

    script
    contacto@rafaelguedez.com

  6. #6
    Junior Member
    Join Date
    Jan 2003
    Location
    Atlanta, GA
    Posts
    3
    GreatGatsby,

    You are the man, that worked perfectly. We are incorporating Spanish into some of our new training pieces.

    Thanks again,

    Tribeman

  7. #7
    Senior Member
    Join Date
    Feb 2000
    Posts
    119
    I cant seem to get it to work for me either. My problem seems to be the characters ? and = .

    here is an snippet of my xml as it is returned to the browser:

    PHP Code:
    <?xml version="1.0" encoding="UTF-16BE"?><XMLmenu><heading  id="Book Stores"><submenu id="Amazon" link="index.php?option=com_frontpage"></submenu>
    Becuase of the format of my links, it is apparently causing problem to display in flash.

    it works perfect when my links are in this format:

    PHP Code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <XMLmenu>
                    <heading  id="Book Stores">
                            <submenu id="amazon" link="http://www.amazon.com"></submenu>
    It semms to me that it msut be the encoding, but maybe one of you experts has another idea....i hope. see attached .Fla and php



    Attached Files Attached Files

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