Найти - Пользователи
Полная версия: Ввод текста на русском в QLineEdit
Начало » GUI » Ввод текста на русском в QLineEdit
1
hcfnhmrx@sharklasers.com
Если ввести текст на русском и попытаться его пропринтовать с помощью метода text(), то вылетит ошибка
UnicodeEncodeError: ‘ascii’ codec can't encode characters in position 0-2: ordinal not in range(128)
Rodegast
unicode(self.QLineEdit.text())
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB