How to put unicode in Cmd/Batch?
So, i'm trying to make a nice batch menu but everytime i try to use unicode's fancy lines i just get random characters. Is there any way to put unicode in cmd and or a batch file?
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.