Unable to view Unicode on CMD or PowerShell

4

3

I do have a Centos 7 server which i access it via CMD or PowerShell.

But it's displaying the Unicode characters as ?

enter image description here

But if i accessed it via putty it's displayed correctly.

enter image description here

αԋɱҽԃ αмєяιcαη

Posted 2019-12-29T09:55:05.287

Reputation: 197

Answers

3

Solved it by installing Windows Terminal Preview Check

αԋɱҽԃ αмєяιcαη

Posted 2019-12-29T09:55:05.287

Reputation: 197

8

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, use chcp
  • In powershell, use $OutputEncoding = [System.Text.Encoding]::Unicode

Further Reading

DavidPostill

Posted 2019-12-29T09:55:05.287

Reputation: 118 938

But the system is able to view it once i logged in via putty with the default chcp of 437 – αԋɱҽԃ αмєяιcαη – 2019-12-29T10:24:19.823

3@αԋɱҽԃαмєяιcαη I guess putty is doing something already with unicode translation ... – DavidPostill – 2019-12-29T10:27:26.977

3@αԋɱҽԃαмєяιcαη, putty is a GUI application, it doesn't use the Windows command window. – Harry Johnston – 2019-12-29T21:40:22.747