I posted a bug about this, but I thought I'd post a thread here to, in case anybody has any suggestions. I've found that when I save an XML file with a non-english character as the last character in an XML node, like this...
<something>blah blah blahé</something>
...the file will save just fine, but opening will throw an error, and fail on line 1101 of tinyxmlparser.cpp. Any ideas on how to fix this?
Thanks,
Tom
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I suspect your encoding is incorrect. Check out the "UTF-8" section in the TinyXML docs. I suspect you didn't save as UTF-8, or need to turn on legacy encoding.
lee
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried using the UTF-8 flag, but it didn't solve the problem for me. What did work, however, was encapsulating the text in a CDATA. I suppose I should have been doing that anyway, though.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I posted a bug about this, but I thought I'd post a thread here to, in case anybody has any suggestions. I've found that when I save an XML file with a non-english character as the last character in an XML node, like this...
<something>blah blah blahé</something>
...the file will save just fine, but opening will throw an error, and fail on line 1101 of tinyxmlparser.cpp. Any ideas on how to fix this?
Thanks,
Tom
I suspect your encoding is incorrect. Check out the "UTF-8" section in the TinyXML docs. I suspect you didn't save as UTF-8, or need to turn on legacy encoding.
lee
I tried using the UTF-8 flag, but it didn't solve the problem for me. What did work, however, was encapsulating the text in a CDATA. I suppose I should have been doing that anyway, though.