Change permanently terminal encoding in windows 10

6,440

To use unicode, add the code chcp 65001

This will change the code page. It stays that way until you close the window.

If you want to have this always run, (not necessarily recommended, because unicode can sometimes break batches), you can add a reg key string (reg_sz) to HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor and name it AutoRun. Change the value of it to chcp 65001. If you don't want to see the output message from the command, use @chcp 65001>nul instead.

Reference from my own post: How to put unicode in Cmd/Batch?

Share:
6,440

Related videos on Youtube

DavidPostill
Author by

DavidPostill

Updated on September 18, 2022

Comments