Unicode Problem?
Posted: Wed Apr 06, 2011 10:40 am
Hi guys, I'm submitting a form via a LiveCode app but I'm having trouble with sending the fields because of unicode.
For example there is a field called username, and the username is Some.body™. I have encoded the form via libURLFormData but the end result, the username goes to be like Some.body%99 but when I try to debug it in a browser, what the browser sends is like this Some.body%E2%84%A2... So in short let me put some short example below.
Encoded string LiveCode sends: Some.body%99 = Rejected by remote server.
Encoded string that browser sends: Some.body%E2%84%A2 = Accepted by remote server.
So I want it to be like the one browser sends but I don't know how.
Sorry for the english, I'm not really good with english.
UPDATE:
Okay, I got it to work by using however, now I have a new problem, when the server responds, how do I convert it back to Some.body™? Because the result of the unicode thing is Some.bodyâ„¢. I don't see any way of returning it back to Some.body™. Help please?
For example there is a field called username, and the username is Some.body™. I have encoded the form via libURLFormData but the end result, the username goes to be like Some.body%99 but when I try to debug it in a browser, what the browser sends is like this Some.body%E2%84%A2... So in short let me put some short example below.
Encoded string LiveCode sends: Some.body%99 = Rejected by remote server.
Encoded string that browser sends: Some.body%E2%84%A2 = Accepted by remote server.
So I want it to be like the one browser sends but I don't know how.

Sorry for the english, I'm not really good with english.
UPDATE:
Okay, I got it to work by using
Code: Select all
uniDecode(the unicodeText of fld "username","utf8")