summaryrefslogtreecommitdiffstats
path: root/sip/qt/qstring.sip
diff options
context:
space:
mode:
Diffstat (limited to 'sip/qt/qstring.sip')
-rw-r--r--sip/qt/qstring.sip2
1 files changed, 1 insertions, 1 deletions
diff --git a/sip/qt/qstring.sip b/sip/qt/qstring.sip
index 13bf0a1..d06fec1 100644
--- a/sip/qt/qstring.sip
+++ b/sip/qt/qstring.sip
@@ -831,7 +831,7 @@ TQString *PyTQt_qt_PyObject_AsTQString(PyObject *obj)
switch (PyUnicode_KIND(obj))
{
case PyUnicode_1BYTE_KIND:
- return new TQString(TQString::fromLatin1((char *)PyUnicode_1BYTE_DATA(obj), len));
+ return new TQString(TQString::fromUtf8((char *)PyUnicode_1BYTE_DATA(obj), len));
case PyUnicode_2BYTE_KIND:
// The (TQChar *) cast should be safe.