Menu

tinyxml Latin1 Support

gohanada
2005-07-14
2013-05-20
  • gohanada

    gohanada - 2005-07-14

    Hello -

    I was wondering if anyone can tell me how to support Latin1 characters (i.e. French characters) within tinyxml?

    Thanks,
    GoHanAda

     
    • Ellers

      Ellers - 2005-07-14

      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

       
    • Volker Börchers

      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"?>

       
    • Lee Thomason

      Lee Thomason - 2005-07-24

      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

       

Log in to post a comment.