You can often find the encoding of an XML file in the XML declaration. Look
for the encoding attribute:
Or, since you say "specific", assume what you think is right.
Converting to your native encoding is lossy. You might lose characters. You
can check that by converting back and seeing if
Thanks, that works perfectly :-)
I did not try using decode and encode at the same time..
Pascal
On 13 June 2013 15:08, Mark Schonewille wrote:
> Hi Pascal,
>
> Read the data as binary and convert it.
>
> put url "binfile:folder/file.xml" into myData
> put uniDecode(uniEncode(myData,"UTF8"))
Hi Pascal,
Read the data as binary and convert it.
put url "binfile:folder/file.xml" into myData
put uniDecode(uniEncode(myData,"UTF8")) into myData
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.
von Pascal Lehner
> Gesendet: Donnerstag, 13. Juni 2013 14:54
> An: How to use LiveCode
> Betreff: XML and Unicode
>
> Hi everyone,
>
> I am working on small tool to convert a specific XML file into several html
> pages.
> The whole thing looks good and should be working
Hi everyone,
I am working on small tool to convert a specific XML file into several html
pages.
The whole thing looks good and should be working fine eventually. However,
there is one thing I did not figure out yet: Unicode.
My XML is partially french and has a lot of symbols like this:
Pe