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

Monte Goulding monte at sweattechnologies.com
Sun Nov 9 23:29:19 EST 2014


On 10 Nov 2014, at 3:27 pm, Monte Goulding <monte at sweattechnologies.com> 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
> 
> --
> M E R Goulding 
> Software development services
> Bespoke application development for vertical markets
> 
> mergExt - There's an external for that!
> 

--
M E R Goulding 
Software development services
Bespoke application development for vertical markets

mergExt - There's an external for that!




More information about the use-livecode mailing list