UTF-8

Mark Schonewille m.schonewille at economy-x-talk.com
Sun Sep 11 17:14:02 EDT 2011


Hi Ray,

Yes. To display UTF8, you need to convert it to UTF16 before setting the unicodeText of a field. You can also convert the unicodeText of a field to UTF8 before writing it to a file. The functions are

-- convert from UTF8 to UTF16
uniEncode(myUTF8,"UTF8")

-- convert from UTF16 to UTF8
uniDecode(myUTF16,"UTF8")

To convert from plain text to UTF8 you can do this:

uniDecode(uniEncode(myEnglish,"ANSI"),"UTF8")

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Send me a friend request on Facebook if you like https://www.facebook.com/marksch

On 11 sep 2011, at 23:57, Ray Horsley wrote:

> Hi all.  Does Livecode have a way to handle UTF-8 encoding and decoding?
> 
> Ray Horsley
> LinkIt! Software





More information about the use-livecode mailing list