I use PyQt4-4.10.3 for a long time. Yesterday I've upgraded it to pyqt4-4.10.4. But I've found and interesting thing about unicode characters from that version. Here is my example code to explain the situation:
#bla bla...
self.testbutton.pressed.connect(self.testit)
self.grid.addWidget(self.testtext,0,0)
self.grid.addWidget(self.testbutton,1,0)
#...
def testit(self):
print (self.testtext.text())
#bla bla...
#bla bla...
self.testtext = QLineEdit()
self.testbutton = QPushButton("Press It")
self.testbutton.pressed.connect(self.testit)
self.grid.addWidget(self.testtext,0,0)
self.grid.addWidget(self.testbutton,1,0)
#...
def testit(self):
print (self.testtext.text())
#bla bla...
To copy to clipboard, switch view to plain text mode
When I input "şşş" it prints the text "şşş" perfectly. But When I input "Müş", it prints "Mü_".
I input "kır", it prints it correct. But when I input "çakır", it prints "çak1r".
So;
ÅŸÅŸÅŸ ---> ÅŸÅŸÅŸ
Müş ---> Mü_
kır ---> kır
çakır --> çak1r
It's so interesting and PyQt4-4.10.3 is NOT doing this.
To sum up; i didn't get this bug when i was on previous PyQT version. The new version gives me this error. I use Python 3.3.5 and it's work with all unicode characters you know. But latest version of PyQt4 doesn't, I think. So what's your suggestions?
Note: I removed 4.10.4 and installed 4.10.3 version. But I want to know what's wrong with 4.10.4?
Thanks.
Bookmarks