diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-04 11:15:00 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-04 16:37:05 +0900 |
| commit | d31a084fc83d47eef6c6eb3aac76989da9692853 (patch) | |
| tree | 2a412325bd788cd505bb5cdad90ac498a004e405 /sip/qt/qstring.sip | |
| parent | 30954661009ddfb9db2e9daed3bfbd594bb20441 (diff) | |
| download | pytqt-d31a084fc83d47eef6c6eb3aac76989da9692853.tar.gz pytqt-d31a084fc83d47eef6c6eb3aac76989da9692853.zip | |
Use utf8 instead of latin1/ascii as default. Address pyuic compatibility with python3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'sip/qt/qstring.sip')
| -rw-r--r-- | sip/qt/qstring.sip | 2 |
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. |
