Last active
May 8, 2020 06:17
-
-
Save fcicq/867e97bab600d43d8920b8d06ca6de39 to your computer and use it in GitHub Desktop.
powershell convert cp1252 to sjis. same as iconv -f utf8 -t windows-1252 | iconv -f sjis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$cp1252 = [System.Text.Encoding]::GetEncoding(1252); | |
$cp932 = [System.Text.Encoding]::GetEncoding(932); | |
Read-Host "Input Mojibake" | foreach{ $cp932.getstring($cp1252.getbytes($_))} |
Author
fcicq
commented
May 8, 2020
Get-Clipboard -Format Text
is good
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment