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.




Reply With Quote

Bookmarks