JSON, URL-encode, and UTF-8

Monte Goulding monte at sweattechnologies.com
Fri Aug 21 03:17:29 CEST 2015


> On 21 Aug 2015, at 10:58 am, Peter W A Wood <peterwawood at gmail.com> wrote:
> 
> put textEncode("{ " & quote & "é" & quote & ": 1}", "UTF-8") into tJSON
> put "json=" before tJSON
> post URLEncode(tJSON) to URL "http://Localhost/jacque.php <http://localhost/jacque.php>"
> put textDecode(it, "UTF-8”)

You would want to urlEncode tJSON before you put json= before it so the = isn’t encoded.



More information about the use-livecode mailing list