Page 1 of 1

UTF-8 problems with POST

Posted: Sat Feb 06, 2016 3:34 pm
by croivo
Hello...
I'm having troubles using "POST" command in my app. I have php script online, and when I send some parameters with 'POST', and put the result into my variable, I get text full of weird characters (for example, chars like č ć ž š đ are not showed).

However, If I just use command "put myLink into myVariable", all characters are perfect.

Thank you!

Re: UTF-8 problems with POST

Posted: Sun Feb 07, 2016 5:14 pm
by jacque
When sending text out of LC, convert it to UTF8 first with the textEncode function. The reverse is true when getting text from external sources, use textDecode to convert to LC native text.

Re: UTF-8 problems with POST

Posted: Mon Feb 08, 2016 12:28 am
by croivo
I managed to get it working somehow with uniencode functions...