Re: TextDecode JSON array

2017-01-22 Thread J. Landman Gay via use-livecode
On 1/22/17 1:26 AM, Peter TB Brett via use-livecode wrote: On 22/01/2017 03:22, J. Landman Gay via use-livecode wrote: Here's a test sample of some UTF8 I get back from a server: {"UserID":48,"UserName":"Eduardo Ba\u00f1uls","UserLoginName":"ebanu"} Hi Jacque, This is valid JSON (and also

Re: TextDecode JSON array

2017-01-22 Thread Trevor DeVore via use-livecode
On Sun, Jan 22, 2017 at 1:26 AM, Peter TB Brett via use-livecode < use-livecode@lists.runrev.com> wrote: > On 22/01/2017 03:22, J. Landman Gay via use-livecode wrote: > >> Here's a test sample of some UTF8 I get back from a server: >> >> {"UserID":48,"UserName":"Eduardo

Re: TextDecode JSON array

2017-01-21 Thread Peter TB Brett via use-livecode
On 22/01/2017 03:22, J. Landman Gay via use-livecode wrote: Here's a test sample of some UTF8 I get back from a server: {"UserID":48,"UserName":"Eduardo Ba\u00f1uls","UserLoginName":"ebanu"} Hi Jacque, This is valid JSON (and also valid ASCII). In JSON, any character in a string may be

Re: TextDecode JSON array

2017-01-21 Thread Trevor DeVore via use-livecode
That is UTF-8. I've seen older versions of Ruby on Rails would use escape sequences like that in JSON responses. -- Trevor DeVore On Sat, Jan 21, 2017 at 9:22 PM J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > Here's a test sample of some UTF8 I get back from a

Re: TextDecode JSON array

2017-01-21 Thread J. Landman Gay via use-livecode
So LC should recognize it without alteration I'd assume, but it doesn't. Probably the leading "\u"? I'm still not sure how to handle that. On 1/21/17 9:29 PM, Mike Bonner via use-livecode wrote: Looks like utf16 based on this info I found here: https://codepoints.net/U+00F1?lang=en

Re: TextDecode JSON array

2017-01-21 Thread J. Landman Gay via use-livecode
On 1/21/17 9:22 PM, J. Landman Gay via use-livecode wrote: Here's a test sample of some UTF8 I get back from a server: {"UserID":48,"UserName":"Eduardo Ba\u00f1uls","UserLoginName":"ebanu"} If I run textDecode(,"UTF8") on it, I get it back unaltered. Does anyone recognize the text encoding?

Re: TextDecode JSON array

2017-01-21 Thread Mike Bonner via use-livecode
Looks like utf16 based on this info I found here: https://codepoints.net/U+00F1?lang=en SystemRepresentation NÂș 241 UTF-8 C3 B1 UTF-16 00 F1 On Sat, Jan 21, 2017 at 8:22 PM, J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > Here's a test sample of some UTF8 I get back