Change default code page of Windows console to UTF-8

Windows Console is a command line interpreter application used to execute commands in Windows operating systems. It is also known as the Command Prompt or cmd.exe.

The default code page of Windows Console is set to the system’s language. This is usually the language of the region that the system was installed in. However, this can be changed if a user needs to display characters from a different language or character set.

To change the default code page of Windows Console to UTF-8, first open the Command Prompt. This can be done by typing “cmd” in the Run dialog (Windows+R) or by searching for it in the Start menu.

Once the Command Prompt window is open, type “chcp” followed by a space and enter the number 65001. This is the code page number for UTF-8.

The command should look like this:

chcp 65001

Press enter to execute the command. This will change the code page of the current Command Prompt session to UTF-8.

If you want to make this change permanent, open the Command Prompt and type “chcp /?” (without the quotes) and press enter. This will bring up the help page for the chcp command.

Scroll down to the bottom of the page and you will see a section titled “Making Changes Permanent”. Here you will find the instructions for making the change permanent.

The instructions are as follows:

1. Open the Registry Editor by typing “regedit” in the Run dialog (Windows+R).

2. Navigate to the following key:


3. Right-click in the right-hand pane and select “New” -> “DWORD (32-bit) Value”.

4. Name the new value “CodePage”.

5. Double-click the new value and set it to 65001 (the code page number for UTF-8).

6. Close the Registry Editor and restart your computer.

After restarting, the change should be in effect. This will make the default code page of Windows Console UTF-8 for all future sessions.

Changing the default code page of Windows Console to UTF-8 can be useful if you need to display characters from a language or character set other than the one your system is set to. It is also useful if you want your console output to be consistent across different systems.

Inquire Now

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Find your next full or part-time role here

ScaleDesk can either help you find your next full time gig or a part time side gig where you can create extra income!

Onboard with us once
Skip HR screening and go to the final interview with with only your resume and a video interview you never have to redo
Get paid electronically every month for the hours you work
We will be your reference even if you work for us once

IT Teams: Use ScaleDesk to augment your team

Schedule Demo