Re: Setting the Unicode text of a field from JSON converted to array

2014-11-10 Thread Peter W A Wood
These are JSON escaped characters. /r is the return (U+10) character. /n is the newline character (U+13). It would probably be easiest to replace them with the LiveCode return and linefeed characters. Peter > On 11 Nov 2014, at 13:49, Brahmanathaswami wrote: > > Can someone enlighten me on

Re: Setting the Unicode text of a field from JSON converted to array

2014-11-10 Thread Brahmanathaswami
Can someone enlighten me on the /r/n/r/n that appear in the unicode string that is being delivered (by a PHP database access lib/api that we post to from this desktop app) These are obviously two new lines, the break between verses of the song... but how do they mix and match with the unicod

Re: Setting the Unicode text of a field from JSON converted to array

2014-11-10 Thread Monte Goulding
On 10 Nov 2014, at 10:26 pm, Peter W A Wood wrote: > That is unless mergJSON “de-escapes" the JSON for you. It should but Brahmanathaswami wasn't using it. mergJSON handles UTF8 though so there's no need to have all the escapes. The only char it doesn't like is null. Cheers Monte -- M E R G

Re: Setting the Unicode text of a field from JSON converted to array

2014-11-10 Thread Brahmanathaswami
Do we need to remove char the "/" before processing? I guess I'll just try it. But there are these end of line/return strings in the middle of everything, that represent two line breaks. I use block paragraph formatting where all paragraphs or verses are separated by one blank line... these a

Re: Setting the Unicode text of a field from JSON converted to array

2014-11-10 Thread Peter W A Wood
> On 10 Nov 2014, at 13:06, Brahmanathaswami wrote: > > i tried that already: > > case "original_script" > set the unicodetext of field "lyrics" to uniencode(tContent, "utf8") > break > > but still get garble > > > ?? > > > > ?? 555 > >  555 > > ? 555 > [snip]

Re: Setting the Unicode text of a field from JSON converted to array

2014-11-09 Thread Brahmanathaswami
OK... i registered on your site and downloaded the mergJSON-GPL-1.0.10.zip shutting down for the day... will test it tomorrow. Thanks! Aloha! from Kauai! Monte Goulding wrote: On 10 Nov 2014, at 4:06 pm, Brahmanathaswami wrote: > i tried that already: > > case "original_script"

Re: Setting the Unicode text of a field from JSON converted to array

2014-11-09 Thread Monte Goulding
On 10 Nov 2014, at 4:06 pm, Brahmanathaswami wrote: > i tried that already: > > case "original_script" > set the unicodetext of field "lyrics" to uniencode(tContent, "utf8") > break Hmm... If tContent is UTF8 text then that should work fine. I vaguely recall some folks mention

Re: Setting the Unicode text of a field from JSON converted to array

2014-11-09 Thread Brahmanathaswami
i tried that already: case "original_script" set the unicodetext of field "lyrics" to uniencode(tContent, "utf8") break but still get garble ?? ?? 555  555 ? 555 [snip] Where does one get mergeJSON? BR Monte Goulding wrote: > On 10 Nov 2014, at 3:06 p

Re: Setting the Unicode text of a field from JSON converted to array

2014-11-09 Thread Monte Goulding
On 10 Nov 2014, at 3:27 pm, Monte Goulding wrote: > > On 10 Nov 2014, at 3:06 pm, Brahmanathaswami wrote: > >> set the text of field "lyrics" to unidecode(tContent, "utf8") > > ^ should be uniEncode(tContent,"utf8") because tContent is utf8 encoded... at > least I assume it is from the Mark

Re: Setting the Unicode text of a field from JSON converted to array

2014-11-09 Thread Monte Goulding
On 10 Nov 2014, at 3:06 pm, Brahmanathaswami wrote: > set the text of field "lyrics" to unidecode(tContent, "utf8") ^ should be uniEncode(tContent,"utf8") because tContent is utf8 encoded... at least I assume it is from the Mark Smith lib... I use mergJSON because it's much much much faster..

Setting the Unicode text of a field from JSON converted to array

2014-11-09 Thread Brahmanathaswami
in LC 6.6.2, Mac OS X Maveriks, calling data from MySQL dBase on our web server into a desktop thin client. I have a field that is being set to unicode... the default font is Lucida Grande, which supports Tamil. I'm on a mac: if I paste Inaimathi (Tamil Unicode font) into the field, the Tami