R – NSURL with Thai language

nsurlthai

I have problem with NSURL and Thailand language for example
"http://www.xyp.com?var=ไทย"
it does't work but if you use
"http://www.xyp.com?var=Thai"
it ok. I don't know how to solve this problem anyone please help me.

Best Answer

i used the method stringByAddingPercentEscapesUsingEncoding on the URL string, and it solved the problem, i was using Danish Characters

Related Topic