Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

[SOLVED] Upload text (WWW) Accent problem �

Discussion in 'Scripting' started by Tarzan111, Dec 15, 2014.

  1. Tarzan111

    Tarzan111

    Joined:
    Oct 8, 2014
    Posts:
    72
    Hi.
    I've got a problem while importing some text from a php file (WWW method).

    If my php file contain accent, unity player will show a "�".
    I do everything on my php file to show all the accent correctly, but unity doesn't seem to support it.
    I join a screenshot with my php result and the result on unity, you can see "Pérou" is correctly writen on the php result but not on unity.

     
  2. kelvinwop

    kelvinwop

    Joined:
    Dec 15, 2014
    Posts:
    36
    Tarzan111 likes this.
  3. Tarzan111

    Tarzan111

    Joined:
    Oct 8, 2014
    Posts:
    72
    My php file is in UTF8 and my unity js files also. I'm not sure to understand what do you mean.
    How did i pass via ascii?
     
  4. kelvinwop

    kelvinwop

    Joined:
    Dec 15, 2014
    Posts:
    36
    try saving the php file in unicode or ANSI. unity might have a problem with special characters in UTF-8 or something.
     
    Tarzan111 likes this.
  5. Tarzan111

    Tarzan111

    Joined:
    Oct 8, 2014
    Posts:
    72
    You're the best.
    Thanks
     
  6. kelvinwop

    kelvinwop

    Joined:
    Dec 15, 2014
    Posts:
    36
    no problem