[Qt-interest] XML encoding of UTF8
Jason H
scorp1us at yahoo.com
Tue Aug 17 18:45:19 CEST 2010
I need to represent é (html: eacute, utf8: #233) in a QByteArray.
Here's what's happening. I get an XML/utf-8 file, read it, parse & modify it as
XML in QDomDocument, then I need to serialize it back out. When I do, I call
domDoc.toString().toUtf8().
But this leaves the raw UTF8 two-byte value in there. I need some way to have
the é re-encoded as é But not just that entity, all of them.
How/Does Qt do this?
Thanks!
More information about the Qt-interest-old
mailing list