[Python-Dev] PEP 393 Summer of Code Project

Neil Hodgson nyamatongwe at gmail.com
Thu Sep 1 10:53:28 CEST 2011


Stephen J. Turnbull:

> ...  Eg, this is why the common GUIs for Unix (X.org, GTK+, and
> Qt) either provide or require UTF-8 coding for their text.

   Qt uses UTF-16 for its basic QString type. While QString is mostly
treated as a black box which you can create from input buffers in any
encoding, the only encoding allowed for a contents-by-reference
QString (QString::fromRawData) is UTF-16.
http://doc.qt.nokia.com/latest/qstring.html#fromRawData

   Neil


More information about the Python-Dev mailing list