Unable to view Unicode on CMD or PowerShell
cmd is displaying the Unicode characters as ?
You need to set a codepage that supports the Unicode characters you are using:
- In a
cmd
shell, usechcp
- In
powershell
, use$OutputEncoding = [System.Text.Encoding]::Unicode
Further Reading
- An A-Z Index of the Windows CMD command line | SS64.com
- Windows CMD Commands (categorized) - Windows CMD - SS64.com
- Chcp - Change Code Page - Windows CMD - SS64.com
- Understanding default encoding and Change the same in PowerShell – mohitgoyal.co
Solved it by installing Windows Terminal Preview
Check