am i allowed to use PyUnicode_Decode or PyUnicode_DecodeUTF8 in my
code
or that is not advisable?

QString s("foo");
// QString::unicode returns garbage unusable for PyUnicode_FromUnicode
            PyObject *uo =
                PyUnicode_Decode(s.utf8(), s.length(), "utf8", 0);

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to