- Home /
WWW.EscapeURL Not Work Well?
string test = "汉の字";
test = WWW.EscapeURL(test);
Debug.Log(test);
What i get : %3f%3f%3f%3f%3f%3f%3f%3f%3f, which equals to ?????????
Absolutely wrong. EscapeURL cant work with Chinese character?
Comment
Best Answer
Answer by Tracy-Ma · Aug 15, 2013 at 09:46 AM
OK, solved.
You need to switch your script's encoding to "UTF-8 With BOM".
Answer by Bunny83 · Aug 15, 2013 at 09:47 AM
Well, are you sure that you saved your script file with an encoding that supports Unicode? Utf8?
I never was in need of using chinese characters yet but other non ASCII characters.
Your answer
![](https://koobas.hobune.stream/wayback/20220613112246im_/https://answers.unity.com/themes/thub/images/avi.jpg)