Menu

UTF8 bug?

Instructor
2005-09-25
2013-05-20
  • Instructor

    Instructor - 2005-09-25

    doc.LoadFile("utf8test.xml", TIXML_ENCODING_UTF8);
    doc.SaveFile();

    Missed BOM record "EFBBBF" at file beginning (using  2.4.0 RC)

     
    • Lee Thomason

      Lee Thomason - 2005-09-25

      TinyXml doesn't write the BOM mark. It is a Microsoft only convention, and UTF-8 is the default format for XML.

      lee

       
    • Instructor

      Instructor - 2005-09-26

      Yes, but often need to edit the xml file with a text editor. It don't understand that it is UTF8 format without BOM. Maybe if file opened with BOM (doc.LoadFile) then write it back when saving (doc.SaveFile) and if it not then don't write?

       
    • Lee Thomason

      Lee Thomason - 2005-09-27

      That's a great suggestion. I'm actually in the middle of fixing some EOL normalization problems. I'll try to fix this as well.

      lee

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.