Writing to file in utf-8

jbv at souslelogo.com jbv at souslelogo.com
Wed Sep 3 13:02:12 EDT 2014


Hell Trevor

> Why are you using unidecode?

I am using unidecode because

1- in this LC lesson
http://lessons.runrev.com/m/4071/l/20441-unicode

it says :
The keys to using UTF-8 text in Livecode are the uniEncode() and
uniDecode() functions. Let's say you've gotten some UTF-8 text from a web
site and you want to display it in your Livecode stack. You store it in a
file called myUniText.ut8. This is how you would read it in:

put url ("binfile:/path/to/file/myUniText.ut8") into tRawTxt
set the unicodetext of fld "display" to uniencode(tRawTxt,"UTF8")

2- Mark suggested to use that function in his 1st reply to my question...

Best
jbv





More information about the use-livecode mailing list