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

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1758195151, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/language/variable/preference/OutputEncoding(64): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78