you can ensure you are in plain text by using convertion functions:
http://gambaswiki.org/wiki/lang/conv 2015-12-18 10:34 GMT+01:00 Rolf-Werner Eilert <eilert-sprac...@t-online.de>: > > Am 18.12.2015 10:24, schrieb Tobias Boege: >> On Fri, 18 Dec 2015, Rolf-Werner Eilert wrote: >>> Is an XML file like the ones which are produced by File.Save and >>> RichTextArea a UTF-8 file? >>> >>> Do I have to handle the string with the String class, or is it plain >>> ASCII and has to be handled with ordinary Mid, Left, InStr? >>> >> It is possible that a random XML file contains UTF-8 characters: try opening >> LibreOffice, typing some umlauts and saving the file. Use unzip on the .odt >> to get the content.xml file. Then >> >> $ file -i content.xml >> >> shows that it is UTF-8 encoded XML. So you are on the safe side with the >> String class. >> >> Regards, >> Tobi >> > "On the safe side" - that is what I wanted to know. Thank you! :) > > Rolf > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user