[Qt-interest] Japanese text conversion problem

Thiago Macieira thiago.macieira at trolltech.com
Wed Jul 22 19:42:14 CEST 2009


AngelWarrior wrote:
>QString pMsg = CloseMessage.toUtf8();

This line is wrong.

If it's UTF-8, you can't put it in a QString, since QString is UTF-16. 
Keep it in a QByteArray.

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Software
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090722/1f37123a/attachment.bin 


More information about the Qt-interest-old mailing list