Best way to convert text files between character sets?

后端 未结 21 2303
再見小時候
再見小時候 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条回答
  •  迷失自我
    2020-11-22 05:05

    DOS/Windows: use Code page

    chcp 65001>NUL
    type ascii.txt > unicode.txt
    

    Command chcp can be used to change the code page. Code page 65001 is Microsoft name for UTF-8. After setting code page, the output generated by following commands will be of code page set.

提交回复
热议问题