Menu

Non-English Characters

aetmos
2006-06-26
2013-05-20
  • aetmos

    aetmos - 2006-06-26

    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

     
    • Lee Thomason

      Lee Thomason - 2006-06-27

      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

       
    • aetmos

      aetmos - 2006-06-30

      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.

       

Log in to post a comment.

MongoDB Logo MongoDB