JSON, URL-encode, and UTF-8

J. Landman Gay jacque at hyperactivesw.com
Mon Aug 17 14:41:26 EDT 2015


I've confused myself. I need to send JSON to a server. The values will 
have foreign characters in them. So I think I need to use textEncode to 
convert it to UTF8 and also it needs to be URL encoded. Is that right? 
And if so, what order do I do it in?

Do I URL-encode each value in the array, then create the JSON, then 
textEncode that? Or some other order? Or does textEncoding remove the 
need to URL encode?

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list