A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: special characters??? have to write my own parser?

  1. #1
    Junior Member
    Join Date
    Apr 2001
    Posts
    8
    I wrote a nifty drop down menu using xml, and have now found out that it fails when I try language versionizing. I.e. for german ö (&ouml and spanish ñ (&ntilde the parser just ends the string where it found the offending character.

    in normal xml this would be solved with entity tags in the ddt and unicode representations:

    <!DOCTYPE names [
    <!ENTITY nbsp " ">
    <!ENTITY ccedilla"ç">
    ]>

    or direct unicode like:

    <xslasd>hello there</xslasd>

    but the flash parser seems to ignore both options.

    This must have gone around many times, any re-usable code out there ?

    Suggestions?

    thanks before hand :~)

  2. #2
    Member
    Join Date
    Oct 2001
    Location
    Italy
    Posts
    51
    Hy,
    I had the same problem and I solved it with this:
    System.UseCodePage = true;
    in the flash movie.
    But now I have a different question: this works fine on a PC but it doesn't on MAC.
    I know someone else had the same problem but I can't find the previous thread, excuse me.
    Can you help us?
    Thank you very much
    Carla

  3. #3
    Junior Member
    Join Date
    Apr 2001
    Posts
    8
    sorry, I'm writing for Flash5 (believe it or not) :~(

    so I don't even have access to the System object.

    What I'm doing right now is writing my own secondary parser to replace the & persand characters with the proper ASCII characters. I may not work because the Flash parser seems to even get stuck on turkish & characters (for example it stops if i give it & #252 (without the space))??? Why I dont know if it isnt parzing the & persand character anyway?

    but at least it doesn't choke on the more regular & persand characters like & uuml; (without the space), it just ignores it and includes it in the text string, which I can then sift out and replace later.

    Suggestions anyone, the flash community cant be all in the US?

  4. #4
    Member
    Join Date
    Oct 2001
    Location
    Italy
    Posts
    51
    Hy!
    I solved it, now it works properly on MAC too. I just saved the xml file as unicode encoding, a powerful notepad feature .
    Thank you
    Carla
    P.S.: VAYKENT for moderator!

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