UTF-8 display in TCMD

May 30, 2008
235
2
When I run TCC stand-alone I can TYPE utf8 encoded files correctly by setting the console to code page 65001 using chcp and setting the console font to a font that supports the extended characters in the file (Lucida console).

However, this does not work if TCC runs inside TCMD. TCMD uses Lucida console font and I have set the code page to 65001. But the extended characters are displayed as gibberish.

I guess it's the screen-scraping between TCC and TCMD that comes in the way? Any way to fix this by changing an option or so?

Edit:

I seem to have found a solution. If I change the font for TCC to Lucida Console and leave that as default for "future windows with same title", then it also seems to work for new TCC sessions run from inside TCMD. (Providing chcp 65001 is used first of course).

Seems strange to me as TCMD has its own font (also Lucida console) so why should it matter which font the hosted consoles use? Not that I'm complaining as long as it works.
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
I seem to have found a solution. If I change the font for TCC to Lucida Console and leave that as default for "future windows with same title", then it also seems to work for new TCC sessions run from inside TCMD. (Providing chcp 65001 is used first of course).

Seems strange to me as TCMD has its own font (also Lucida console) so why should it matter which font the hosted consoles use? Not that I'm complaining as long as it works.

Windows is translating between the console non-Unicode font and the GUI Unicode font, and it rarely gets all the characters right. The only reliable way to handle this is to have both sides using Unicode code pages.
 
Similar threads
Thread starter Title Forum Replies Date
vefatica VIEW ... remember the UTF-8 setting? Support 0
Alpengreis UTF-8 problem in TCC related to Python Support 7
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
G v28 Display Issue Support 7
samintz WAD Display wrapping issue Support 5
K Fixed Prompt display will be shifted after use dir to display a filename with Chinese. (v25.00.28 x64) Support 18
Jesse Heines How to? How to display picture creation date with dir command Support 6
B Fullwidth Unicode forms display incorrectly Support 5
D Need to set Take Command font size when switching to high DPI display Support 0
T FFind - can we display n number of lines after the find? Support 2
Joe Caverly PSHELL Blank Line Display Support 2
Alpengreis The TCMD Display problems and font size ... Support 2
vefatica Display of special characters in aliases. Support 25
R How to? Display text same as in CMD Support 14
T TCC display issue Support 1
MikeBaas How to? SELECT: exclude files / display prompt Support 2
D WAD TASKBAR options LogOff and ShutDown do not display a dialog Support 2
rfaquino How to? Display filename being copied on a single line Support 2
rps How to? Portable TCMD display problem Support 2
L Windows 8.1 version display Support 5
mfarah How to? Getting pdir to display relative paths. Support 2
D Folders pane display problem when starting Support 4
D Folders pane display problem after rename Support 0
C How to? Multi-Display Configuration Support 5
A WAD Limitations on display of unicode punctuation marks Support 11
N Incorrect display under TCMD 13 Support 1
Joe Caverly Display the VIEW window in a Take Command tab window Support 2
L FFIND no result display Support 10
B TCC v12 display double problem Support 2
B Bdebugger / IDE editor doesn't display called batch file Support 1
Peter Bratton IDE environment window display Support 0
G Display setting for Tabbed Toolbar Support 1
MickeyF Nice alias display Support 0
D Bug TCMD /X option Support 6
vefatica TCMD hides itself! Support 3
vefatica Tray min'd TCMD and ACTIVATE Support 6
C How to? starting TCC/TCMD v25 Support 2
CWBillow TCC and TCMD in Powershell Support 6
kb6ojs How to? "Specified Account Already Exists" error installing TCMD v27 Support 12
CWBillow TCMD Colors Support 8
Jay Sage Issues With TCMD File Explorer Support 0
C Last TCMD that supports win 7? Support 5
gentzel TCMD background color confusion Support 6
R Upgrade TCMD 19 to TCC 26 Support 1
Alpengreis Remaining TCMD background process (v26) ... Support 19

Similar threads