Welcome, Guest
  • Author Topic: Tree Menu (flash-db.com) help-question  (Read 1651 times)

    gicuion

    • Server what's that
    • *
    • Posts: 2
      • View Profile
    Tree Menu (flash-db.com) help-question
    « on: 01/26/10, 15:30 »
    I've downloaded this example of tree menu from http://www.flash-db.com/Tutorials/treemenu/index.php
    Thanks for this example. It was very helpful!

    I just have one question.
    How can I make this tree menu to display characters like "ş", "ţ","ă", "Ş", "Ţ", "Ă" ? I have words that use them and just those 6 characters are not displayed.

    Thank you!

    papachan

    • Systems Administrator
    • *****
    • Posts: 507
      • View Profile
      • Air Flex Developer
    Re: Tree Menu (flash-db.com) help-question
    « Reply #1 on: 01/26/10, 18:33 »
    If your page encoding is configured in this language, the flash can recognize your system setting through :

    System.usecodepage = true;

    But i should recommends you to work your code with  UTF-8 standard and must add too a UTF8 function to parse your string content.

    tell me if you dont understand what i mean.

    gicuion

    • Server what's that
    • *
    • Posts: 2
      • View Profile
    Re: Tree Menu (flash-db.com) help-question
    « Reply #2 on: 01/29/10, 05:25 »

    Hello!
    I used "System.useCodepage = true;" in flash,
    in the "menu.xml" file I wrote "<?xml version="1.0" encoding="UTF-8"?>"
    and in the html file that opens the .swf I used "<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />" if this helps with something...

    But for now... the symbols are not yet displayed.

    What is the "UTF8 function to parse your string content" that you mention ?

    papachan

    • Systems Administrator
    • *****
    • Posts: 507
      • View Profile
      • Air Flex Developer
    Re: Tree Menu (flash-db.com) help-question
    « Reply #3 on: 01/29/10, 08:38 »
    Hello,

    You myst display UTF-8 characters for your characters, i you are working with any language server, its more easyer.

    http://stuffofinterest.com/misc/utf8.php?s=128

    But at actionscript side you must use a parser function to decode your characters.

    this is the first option, the other optn is to use System.usecodepage = true; and tell the flash to detect your system font setting. but you must find your encoding... so its not UTF-8

    maybe with=

    http://en.wikipedia.org/wiki/Character_encoding

    tell me,