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?
Related videos on Youtube
Author by
DavidPostill
Updated on September 18, 2022Comments
-
DavidPostill over 1 year
When I type in the cmd
chcp 65001
" and then close it, when reopening it resets to the default "850".I need to be able to run my C++ program with utf8 but I can't if it keeps reseting itself...
-
Admin over 7 yearsIt looks like you have created a second account, which will also interfere with your ability to comment within your thread and to accept an answer. See How can one link/merge/combine/associate two accounts/users? and/or I accidentally created two accounts; how do I merge them? for guidance on how to merge your accounts.
-