Python Forum

Full Version: with source file in UTF-8 you have full UNICODE support
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!
This is only a message for my solved problem to get UNICODE support.

With Windows I code for Python 3.7 with the tool PythonWin which comes with the package pywin32

I had the problem with strings having characters of the upper area of latin-1 upper range .e.g. ß

After hours I had the idea to
convert the python script file to UTF-8 with Windows Notepad.

Suddenly with the so converted source file (encoded in UTF-8)
I had full UNICODE support.

Hope this helps other
Erhy
Python 3 has full Unicode support built in, I'm not sure I understand the original problem, nor the solution.
Your editor 'PythonWin' should save it as utf-8
(Jan-06-2019, 10:31 AM)Axel_Erfurt Wrote: [ -> ]Your editor 'PythonWin' should save it as utf-8
in my experience PythonWin stores script file as opened belonging encoding