IIRC TinyXml supports UTF-8 as its normal encoding. Just save your text as an xml file (using an editor smart enough to get the encoding right, like JEdit and many others) and TinyXml should be fine.
HTH
Ellers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes that should work. Although - and this may be important - tinyxml doesn't really support ISO-8859-1. It supports UTF-8 or "whatever the current encoding is on the machine it is running on".
Your machine is almost certainly ISO-8859-1. But a program that works on your machine (ISO-8859-1) would not work on a Japanese machine (Shift-JIS).
UTF-8 avoids the problem altogether and works everywhere.
lee
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello -
I was wondering if anyone can tell me how to support Latin1 characters (i.e. French characters) within tinyxml?
Thanks,
GoHanAda
IIRC TinyXml supports UTF-8 as its normal encoding. Just save your text as an xml file (using an editor smart enough to get the encoding right, like JEdit and many others) and TinyXml should be fine.
HTH
Ellers
please try to set the encoding. I had a discussion with Lee about that on the mailing list and I think it should work:
<?xml version="1.0" encoding="ISO-8859-1"?>
Yes that should work. Although - and this may be important - tinyxml doesn't really support ISO-8859-1. It supports UTF-8 or "whatever the current encoding is on the machine it is running on".
Your machine is almost certainly ISO-8859-1. But a program that works on your machine (ISO-8859-1) would not work on a Japanese machine (Shift-JIS).
UTF-8 avoids the problem altogether and works everywhere.
lee