18
2
My command prompt's default code page is 936.
I need to change it to UTF-8.
chcp 65001
The above doesn't work. What's the correct one?
18
2
My command prompt's default code page is 936.
I need to change it to UTF-8.
chcp 65001
The above doesn't work. What's the correct one?
12
In order for chcp 65001
to work, you must be using a TrueType font in the command prompt. One such font is Lucida Console.
To use Lucida Console:
Properties
Font
Lucida Console
OK
@Synetech don't worry, the display is wrong, the characters are correct. cd ű
is displayed at cd ?
, but it still goes into the correct directory. – TWiStErRob – 2014-08-12T09:28:56.073
Unfortunately neither Lucida Console, nor Consolas seem to render non-ASCII characters correctly in the command-prompt (which makes me really nervous about handling files with such characters). :-(
– Synetech – 2012-09-16T22:40:07.350
Oops, nevermind. It renders correctly (Chrome messed up the Unicode characters when it created the .URL
file). My concern about how files with Unicode characters in their names stands. I worry that performing operations like copy or move would not work or worse, mess things up. I tried using the chcp
command it complained about being unable to write to the device. I tried it again without the command and it worked. o.O
– Synetech – 2012-09-16T22:58:48.410
0
Many people complain in different questions about the 65001
support in windows console. My particular solution was to use ISO-8859-1 code page (28591) instead of UTF-8. You might take a look at the Code Page Identifiers at MSDN to identify one that fits your character needs.
1chcp 65001 worked nice for me. Programs that are not utf-8 will output a big mess, of course. – Havenard – 2009-09-03T00:23:04.457
Did you try non ascii letters? – None – 2009-09-03T00:26:54.567