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

Brahmanathaswami brahma at hindu.org
Mon Nov 10 00:06:34 EST 2014


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 pm, Brahmanathaswami<brahma at hindu.org>  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...
>
> Woops.. sent too quick. You should be setting the unicodeText rather than the text... otherwise you would want to do something like uniDecode( uniEncode(tContent,"UTF8"),"ANSI")
>> >  
>> >  BTW I'm not sure why your server is escaping all the unicode characters instead of just sending utf8. It's bloating your data unnecessarily.
>> >  
>> >  Cheers
>> >  
>> >  Monte



More information about the use-livecode mailing list