20

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?

Spiff
  • 110,156

2 Answers2

13

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:

  • Right click on the window title bar
  • Select Properties
  • Select the tab Font
  • Select Lucida Console
  • Press OK
DavidPostill
  • 162,382
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.