[Qt-interest] Have QXmlStreameWriter write the encoding information

Thiago Macieira thiago.macieira at trolltech.com
Sat May 30 13:31:35 CEST 2009


Marc Balmer wrote:
>Soe does anyone on this list have an idea how I can get the encoding
>information to be written?  Or is it time to file a bug report?

Andreas's message explained why. You have to write to a byte array or 
iodevice to get the encoding information.

If you write to QString, the encoding is supplied by the QString itself: 
UTF-16.

-- 
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/20090530/9c839192/attachment.bin 


More information about the Qt-interest-old mailing list