Search This Blog

Encode and CodePage


PS> [System.Text.Encoding]::GetEncodings()|
>>  Where-Object { $_.Name -match "utf" -and $_.CodePage -match "^(1\d+[^1]|[^1]\d+1)$" }|
>>  Select-Object -Property DisplayName, Name, CodePage

DisplayName      Name   CodePage
-----------      ----   --------
Unicode          utf-16     1200
Unicode (UTF-32) utf-32    12000
Unicode (UTF-8)  utf-8     65001


PS>