How to configure the encoding for Powershell console?

Question:

I have some problems with displaying Chinese characters in the Powershell console. All Chinese are shown as rectangles there. I believe this is an encoding problem. Does anyone know how to configure the Powershell console to use UTF8 encoding?

Answer:

Have a look at this post

Current Encoding: [Console]::Out

Set Encoding (UTF8): [Console]::OutputEncoding = [System.Text.Encoding]::UTF8

Source:

How to configure the encoding for Powershell console? by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply