Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from Jan 24 '11 at 10:58

This question came from our site for professional and enthusiast programmers.

chcp 65001 worked nice for me. Programs that are not utf-8 will output a big mess, of course. – Havenard Sep 3 '09 at 0:23
Did you try non ascii letters? – Shore Sep 3 '09 at 0:26

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
share|improve this answer
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 Sep 16 '12 at 22:40
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 Sep 16 '12 at 22:58
@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 Aug 12 '14 at 9:28

You must log in to answer this question.