Search Unity

Unity not support unicode in Flash

Discussion in 'Flash' started by tamalive, Jun 12, 2012.

  1. tamalive

    tamalive

    Joined:
    Jul 21, 2011
    Posts:
    11
    Hi everybody,

    I'm Vietnamese. I have a big problem when I export my project to Flash. It's not show Vietnamese language. Can you help me ? Thanks so much.

    Tam
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,603
    removed as not solving the issue
     
    Last edited: Jun 12, 2012
  3. tamalive

    tamalive

    Joined:
    Jul 21, 2011
    Posts:
    11
    Thanks dreamora too much. I was try your way. But it still not work :(
     
  4. Juan

    Juan

    Joined:
    May 21, 2009
    Posts:
    142
    I had to face this problem, and a friend who i hired to help me with that achieved a solution by accessing the bytes of the strings contained in our files ( we were picking the strings from XML).

    Now, try to use C# instead Javascript if you are not doing it, and be sure your code files are encoded in UTF-8

    Cheers.
     
  5. laurent-clave

    laurent-clave

    Joined:
    Jul 18, 2011
    Posts:
    278
    UTF8 encoded twice, curiously it works for me
     
  6. tamalive

    tamalive

    Joined:
    Jul 21, 2011
    Posts:
    11
    Thanks all. I'll try.
     
  7. sfireman

    sfireman

    Joined:
    Jul 26, 2012
    Posts:
    5
    Hello guys, did you solve this issue?
    I need to read string from resources
    TextAsset r = (TextAsset)Resources.Load("Languages/" + lngName, typeof(TextAsset));
    string languageData = System.Text.Encoding.UTF8.GetString(r.bytes);
    and then display it on screen via GUIText component or GUI.Label
    both have failed for non-english characters, unity try to display UTF8 as ASCII
    :(
    Only when i type GUIText.text directly from Unity3d IDE i can see non-english characters, even this will ruin all:
    string s = guiText.text;
    guiText.text = s;
    After this non-english characters becomes unreadable
    So sad, do i need to display text via textures, FFS?
     
unityunity