Search notes:

PowerShell: The preference variable $OutputEncoding

The value of the PowerShell preference variable $OutputEncoding controls in what encoding text is sent to third party applications. Its type must be a System.Text.Encoding object or an object that is derived from that class.
It is noteworthy to mention that the value of $outputEncoding has no influence on the redirection operators or on the Out-File cmdLet. It is, however, possible to override the default values for the -Encoding parameter with the $psDefaultParameterValues variable.
PS C:\> $outputEncoding.GetType().FullName
System.Text.ASCIIEncoding
PS C:\> $outputEncoding
IsSingleByte      : True
BodyName          : us-ascii
EncodingName      : US-ASCII
HeaderName        : us-ascii
WebName           : us-ascii
WindowsCodePage   : 1252
IsBrowserDisplay  : False
IsBrowserSave     : False
IsMailNewsDisplay : True
IsMailNewsSave    : True
EncoderFallback   : System.Text.EncoderReplacementFallback
DecoderFallback   : System.Text.DecoderReplacementFallback
IsReadOnly        : True
CodePage          : 20127

See also

Preference variables
The properties InputEncdoing and OutputEncoding of the .NET class System.Console.
PowerShell: Encoding

Index