UTF-8 problem in TCC related to Python

Jan 12, 2014
Switzerland, SO

I have the following test-script in Python, encoded in UTF-8:

# 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?)?


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).


  • testutf-8.zip
    283 bytes · Views: 139
Last edited:
Jan 12, 2014
Switzerland, SO
No, it run always in "pure 1252" CP TCC window, except when I had changed for testing (which was even also not successful). That's a weird thing, because the call with "python program.py" does work ... I assume, this COULD be a specifiy problem with the call of the related DLL of python somehow (which runs over Command Prompt and does not work over TCC) ...

PS: Same result also with the Windows MAY update (Microsoft Windows 10 Pro x64 [19041.264] [2004] TCC 26.01.40 x64)

PPS: YES, the call of the python DLL (core) seems the reason. I saw, that the Command Prompt does start the python.exe instead loading the python core via DLL and then it runs without problem!

So, after I deactivated the Python Script language in the TCC options, it runs without problem too! Unfortunately, the autocompletion for py files is now also gone ...
Last edited:
Jan 12, 2014
Switzerland, SO
Rex, is this problem with loading the Python Core DLL a Python problem or a TCC problem? OR, could you make a workaround?

Just a question - if it's not possible it's not the end of the world.
Similar threads
Thread starter Title Forum Replies Date
vefatica VIEW ... remember the UTF-8 setting? Support 0
gschizas Fixed Using codepage 65001 (UTF-8) breaks non-ASCII characters Support 8
D How to? How to use TCC in UTF-8 mode? Support 4
jadaml Echo unicode characters from UTF-8 Batch files? Support 1
A How to? How to enable UTF-8 output in tcmd.ini Support 9
Stefano Piccardi UTF-8 BOM marker @iniread failure Support 6
M FFIND and LIST does not work for UTF-8 fles Support 10
nikbackm UTF-8 display in TCMD Support 1
Dick Johnson Weird Color Problem Support 8
fishman@panix.com Problem with 27.15 Support 2
M Problem with VSDevCmd.bat in VS 16.7.3 Support 0
R Problem with @INT[ value] in V26 Support 9
M Selecting test "off by one" problem in Take command Support 4
K_Meinhard Small problem in german IDE 26 Support 3
B Problem with color in nested shells Support 1
Joe Caverly Problem creating and switching to a DESKTOP Support 9
vefatica Another popup problem Support 10
Alpengreis ffind dialog (/W) problem Support 4
Alpengreis [TCMD v25.00.24] Small space problem with the DE translation in Prefs-GUI Support 1
Alpengreis [TCMD v25.00.24] Problem with copy and paste and the # char via mouse in TCC Support 6
A Problem with functions @int @decimal and identifying Powershell as a shell. Support 12
B IF command problem in tcexit.btm Support 9
fishman@panix.com Problem at Startup of TCC Support 3
P Problem with SFTP copies Support 7
P Problem with FTP copies Support 10
Jay Sage Problem with Context Menu Copy+Paste+Run Key Assignment Support 7
R Problem with %_do_loop in nested do loops Support 2
fishman@panix.com New Problem with later Windows 10 Support 10
Peter Murschall A little problem with LEAVE and COMMENT Support 5
M Handling of %~I problem Support 4
WinLanEm FOR problem Support 18
K Problem With SCRPUT /u Support 3
vefatica What's TCMD's problem with ^e[0m? Support 13
Peter Murschall IDE: RTL with non-English resources-problem is back in Build 28 Support 4
rps Regex problem: \xnn not recognized as a hex character Support 0
rps PRIORITY LOW problem Support 1
old coot Regex problem: \xnn not recognized as a hex character Support 12
vefatica Another problem with build 22. Support 3
Alpengreis [23.x] Download-Problem Support 2
S Problem with " Support 3
C Problem navigating forums Support 11
x13 Problem listing repository files using DIR http(s)://... Support 8
Joe Caverly Problem with TEE in v22 Support 2
Alpengreis Problem with thousands delimiter and colors Support 17
M Take Command 18, migrating to another machine, license problem. Support 1
B TCC 21.01.50 Problem with ALIAS /r and SET /r Support 2
rps How to? @search problem Support 2
WinLanEm @SELECT problem Support 6
T Fixed Problem with use of Batch parameters in the IDE Support 1
Oz Solomon Problem with "list" Support 14

Similar threads