chcp 65001
Console settings depend very much on the operating system, the terminal program, and the actual font that is used in or with the terminal program.
The console program used here is usually cmd
.
To activate UTF-8, change the code page cmd
is using with the command:
chcp 65001
When using Cygwin in Windows, UTF-8 support depends on the terminal program that is used. One of the most popular terminals is mintty, which supports UTF-8 out of-the-box.
For cmd
and Cygwin, the fonts Consola and Lucida Console
supports almost all UTF-8 box drawing characters.