September 1st, 2015

PowerTip: Verify Default Output Encoding in PowerShell

Doctor Scripto
Scripter

Summary: Learn how to verify your default output encoding in Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to verify my default output encoding?

Hey, Scripting Guy! Answer Check the value of the $OutputEncoding automatic variable:

PS C:\> $OutputEncoding

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback