revXML and UTF-8

Paul Dupuis paul at
Sun Sep 17 09:32:13 EDT 2023

There are a number of "rev" libraries (revXML, revZIP, perhaps others) 
that are not fully Unicode compatible.

See: (revXML, revZIP) (revZIP)

... and possibly others. There are no work-arounds for not being Unicode 
compatible (at least none I know of). In my opinion, bugs with no 
work-around should be among LC's higher priorities for bug fixes.

On 9/17/2023 8:32 AM, jbv via use-livecode wrote:
> Hi list,
> I have a text file encoded in UTF-8. Each line of the file
> is an xml node with several sub-nodes and attributes.
> I have a loop in LC that reads lines one by one and creates
> an xml tree with revXMLCreateTree. The goal is to parse each
> line and extract some data.
> The problem is that, when for instance data is japanese or
> chinese characters, the data always outputs as ????.
> When opening the file I use :
> open file myFile for UTF8 read
> I tried to insert before each line :
> <?xml version="1.0" encoding="UTF-8"?>
> and also :
> put textEncode(myLine,"UTF8") into myLine
> Is there a way to declare an xml tree as UTF-8 ?
> Thank you in advance,
> jbv
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:

More information about the use-livecode mailing list