revXML and UTF8
jbv at souslelogo.com
jbv at souslelogo.com
Mon Apr 10 14:46:44 EDT 2023
Nope, when I process the data without using the xml library, all
characters display fine. The problem is really with revXML.
There must be a trick for using revXML with UTF8 file format.
Le 2023-04-10 07:28, Paul Dupuis via use-livecode a écrit :
> Look up textEncode and textDecode in the dictionary. Text from or to a
> file needs to be decoded or encoded since LC 7.
>
>
> On 4/10/2023 4:07 AM, jbv via use-livecode wrote:
>> Hi list,
>>
>> I have an xml file with lots of non-western characters
>> (greek, arabic, japanese...). I need to convert these
>> data into sql requests to insert into a DB.
>> For each node, I need to pick only some attributes, so
>> I wrote a script that :
>> - opens the file as utf8
>> - processes each node
>> - writes a file as utf8 with the processed data.
>>
>> My problem is that all non-western characters appear as
>> ???? in the final file.
>> Should I use unidecode for each revXMLNodeContents ?
>> What am I missing ?
>>
>> Thank you in advance.
>> jbv
>>
More information about the use-livecode
mailing list