Best way to convert text files between character sets?

后端 未结 21 2084
再見小時候
再見小時候 2020-11-22 04:42

What is the fastest, easiest tool or method to convert text files between character sets?

Specifically, I need to convert from UTF-8 to ISO-8859-15 and vice versa.

21条回答
  •  旧时难觅i
    2020-11-22 05:21

    Get-Content -Encoding UTF8 FILE-UTF8.TXT | Out-File -Encoding UTF7 FILE-UTF7.TXT
    

    The shortest version, if you can assume that the input BOM is correct:

    gc FILE.TXT | Out-File -en utf7 file-utf7.txt
    

提交回复
热议问题