understanding on how to handle UTF-8 import/export
Tiemo Hollmann TB
toolbook at kestner.de
Tue Dec 6 14:42:51 CET 2016
In my LC 6 programs I have uniEncoded and uniDecoded text when
exporting/importing text to an xml file via revXML.
Now with LC 8 everything internal in LC is UTF-8 and since
uniDecode/uniEncode is deprecated my first thought was, that I could
straight export/import text from LC fields into an xml file
(encoding=UTF-8), without any special charset handling anymore. But
obviously this isn't the fact. Doing so, the text is corrupted in the xml
file (checking with an editor) and trying to import the file again, fails
with an import error regarding the encoding of the file. Using my old
mechanic with the deprecated functions uniDecode/uniEncode still works fine,
but I shouldn't use these functions anymore.
What am I missing?
Thanks for a hint
More information about the use-livecode