Sorry for the delay. # dpkg-query -W -f '${Version}\n' python3-pyqt5 5.2.1+dfsg-1ubuntu2 # LC_ALL=C.UTF-8 python3 Python 3.4.3 (default, Nov 17 2016, 01:08:31) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from PyQt5.QtGui import QTextDocument >>> d = QTextDocument() >>> tests = ['', '÷ Σ', '÷ ф', 'Σ', '÷ $', '÷ €', '÷ \U00010437', '÷ >>> \U00024B62', 'ascii', '€' * 1025, 'ちりぬるを', 'ᐊᓕᒍᖅ', 'ฉันกินกระจกได้'] >>> for string in tests: ... d.setPlainText(string) ... assert d.toPlainText() == string >>> # all asserts passed
** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1654840 Title: Error in conversion of some characters from QString to Python unicode To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pyqt5/+bug/1654840/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs