Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Jan 24 '11 at 10:58

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

1  
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
add comment

1 Answer

In order for chcp 65001 to work, you must be using a TrueType font in the command prompt. One such font is Lucida Console.

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.