(Feb-20-2017, 02:15 PM)merlem Wrote: Could this work?No,the point is that you do not encode when you are running code inside Python 3(only in/out).
In Python 3 are all strings sequences of Unicode character
.This give you bytes:
>>> text = "راوند".encode(encoding="UTF-8") >>> text b'\xd8\xb1\xd8\xa7\xd9\x88\xd9\x86\xd8\xaf' >>> # Correct >>> text = "راوند" >>> text 'راوند'Look at my picture,i just copy code from @gray post and run it.
It has correct correct text in GUI window.