- Jan
- 723
- 16
Hello
I have the following test-script in Python, encoded in UTF-8:
After I open the Command Prompt, I can direct run the PY file OR with "python" at beginning without any problems with german umlauts, see here ...
However, if I try the same within TCC console, I HAVE the following problem after direct run the PY file (no problems with "python" at beginning) ...
Can somebody help me with this problem (Rex?)?
Greetings
PS: System data: Microsoft Windows 10 Pro x64 [18363.836] [1909] TCC 26.01.40 x64, Python 3.8.3 x64
PPS: I have NOT enabled the Unicode output and UTF-8 option for TCC. Also if I change the codepage to 65001 manually (or with the Python programm (with "os.system('chcp 65001')") it does not change anything. BTW: I KNOW that the "u" in python print command is deprecated since a while, I also know that the first line with "# encoding: utf-8" is not good style (if file is in utf-8 in Python 3.x) - it's just for testing purposes).
I have the following test-script in Python, encoded in UTF-8:
Python:
# encoding: utf-8
# Set the console codepage for this script to UTF-8
# Shouldn't be necessary through the 1st line: #encoding: utf-8
#os.system('chcp 65001')
print("jö, jä, jü")
print(u"jö, jä, jü")
After I open the Command Prompt, I can direct run the PY file OR with "python" at beginning without any problems with german umlauts, see here ...
However, if I try the same within TCC console, I HAVE the following problem after direct run the PY file (no problems with "python" at beginning) ...
Can somebody help me with this problem (Rex?)?
Greetings
PS: System data: Microsoft Windows 10 Pro x64 [18363.836] [1909] TCC 26.01.40 x64, Python 3.8.3 x64
PPS: I have NOT enabled the Unicode output and UTF-8 option for TCC. Also if I change the codepage to 65001 manually (or with the Python programm (with "os.system('chcp 65001')") it does not change anything. BTW: I KNOW that the "u" in python print command is deprecated since a while, I also know that the first line with "# encoding: utf-8" is not good style (if file is in utf-8 in Python 3.x) - it's just for testing purposes).
Attachments
Last edited: