Contents
How do I change my UTF-8 console?
If you want to work with UTF-8 encoding you have to select UTF-8 as active console codepage. Just run chcp 65001 command to do that. You may call this command from your shell prompt or run it before shell in a ConEmu task content. Of course your application must be able to output data using UTF-8.
How do I change my console code?
Start -> Run -> regedit. Go to [HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor] Add new String Value named: Autorun. Change the value to ‘chcp 437’
What is a console code?
A code page is a mapping of 256 character codes to individual characters. Associated with each console are two code pages: one for input and one for output. A console uses its input code page to translate keyboard input into the corresponding character value.
Why does Java-UTF-8 print characters to the console?
So your JVM seems to detect UTF-8 as the wrong default charset that is incompatible with the codepage of your console. Your console can print ²³ because both characters are supported by the used code page, but the encoding is based on one byte per character while UTF-8 encoding requires 2 Bytes for each of these two characters.
Why is Bash not displaying UTF-8 characters correctly?
I’m having some trouble with displaying UTF-8 characters correctly on bash. I was trying to extract some zipped files that contained accented characters in their names, and I was getting the invalid multibyte characters error. I created a .bash_profile with this:
Do you need to configure your terminal to use UTF-8?
If you want to use UTF-8, configure your terminal to use UTF-8. Since you’re using SSH, you need to configure whatever terminal you’re running the SSH client in to use UTF-8. That’s the default on most modern systems, but apparently yours isn’t set up this way.
What is the code page identifier for UTF-8?
As you can see in the provided links, the code page for UTF-8 is 65001. If you are using Git Bash (MinTTY), you can follow @kriegaex instructions to verify or configure UTF-8 as the terminal emulator encoding. Linux and UNIX, or UNIX derived systems like Mac OS, do not use code page identifiers, but locales.