Best way to convert text files between character sets?

后端 未结 21 2052
再見小時候
再見小時候 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:01

    Stand-alone utility approach

    iconv -f ISO-8859-1 -t UTF-8 in.txt > out.txt
    
    -f ENCODING  the encoding of the input
    -t ENCODING  the encoding of the output
    

    You don't have to specify either of these arguments. They will default to your current locale, which is usually UTF-8.

提交回复
热议问题