Text Problems over Socket Connection

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

visionmill
Posts: 6
Joined: Fri Sep 12, 2014 2:32 pm

Re: Text Problems over Socket Connection

Post by visionmill » Mon Sep 15, 2014 10:32 am

So it seems like Livecode uses UTF-16 as its basic format. This is what I had to use to get the function to work properly.

Code: Select all

function getUTF8fromUTF16 theText 
   return unidecode(uniencode(theText,"UTF16"),"UTF8")  
   end getUTF8fromUTF16

Post Reply