Results 1 to 2 of 2

Thread: UTF8 and ByteOrderMark (BOM)

  1. #1

    Default UTF8 and ByteOrderMark (BOM)

    Hi, how to save a file in UTF but with BOM? Without it i getting trouble in another application

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: UTF8 and ByteOrderMark (BOM)

    BOM isn't necessary for UTF-8, so Qt won't add it, but you can simply prepend it to your file contents as a normal character (you can get it with "QChar( QChar::ByteOrderMark )").

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.