Results 1 to 3 of 3

Thread: Read unicode 8 bit and 16 bit data into QByteArray : Qt, C++, Windows XP

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Oct 2009
    Posts
    483
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanked 97 Times in 94 Posts

    Default Re: Read unicode 8 bit and 16 bit data into QByteArray : Qt, C++, Windows XP

    Unfortunately your specifications are incomplete: "unicode 8 bit format" and "unicode 16 bit format" are not clearly defined names for Unicode encodings; but, from your description, they seem to correspond to UTF-8 and UTF-16LE respectively. Please make sure that it is indeed what you need, and that you must not include any BOM (byte-order mark). Then you can set a QTextCodec up with the chosen encoding to convert between QStrings and QByteArrays.

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

    ustulation (24th June 2012)

Similar Threads

  1. Replies: 0
    Last Post: 7th June 2012, 21:58
  2. Replies: 6
    Last Post: 30th March 2012, 08:01
  3. Replies: 11
    Last Post: 21st February 2011, 17:54
  4. can't read from unicode file .
    By gbmtoday in forum Qt Programming
    Replies: 6
    Last Post: 21st February 2010, 14:36
  5. How to read a Number from the QByteArray
    By antonio.r.tome in forum Qt Programming
    Replies: 2
    Last Post: 24th February 2006, 15:24

Tags for this Thread

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.