Results 1 to 4 of 4

Thread: UTF-16 files

Hybrid View

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

    Default Re: UTF-16 files

    Quote Originally Posted by jcr
    Well, I did it the way below and it works fine for my purpose and for the specific files I am dealing with but I am not sure how general it is:
    Iff those files contain only ASCII characters, but are encoded in UTF-16, there shouldn't be any problem.

    Quote Originally Posted by jcr
    if((int)bufIn.at(0) > 0)
    Qt Code:
    1. if( bufIn.at(0) != 0 )
    To copy to clipboard, switch view to plain text mode 
    might be safer.

  2. The following user says thank you to jacek for this useful post:

    jcr (7th September 2006)

Similar Threads

  1. qt3 themes example: missing header files?
    By nikita in forum Qt Programming
    Replies: 3
    Last Post: 9th August 2006, 13:12
  2. Qt4: QDir::entryList bug in windows when listing network files?
    By Yvon Halbwachs in forum Qt Programming
    Replies: 2
    Last Post: 12th May 2006, 15:22
  3. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 11:28
  4. uic not creating seperate .h and .cpp files
    By Kapil in forum Qt Programming
    Replies: 2
    Last Post: 13th February 2006, 11:43
  5. Visual Studio 2003 and .vcproj files
    By mbjerkne in forum General Discussion
    Replies: 2
    Last Post: 1st February 2006, 01:51

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
  •  
Qt is a trademark of The Qt Company.