Converting ANSI to UTF-8 in shell

后端 未结 1 1157
囚心锁ツ
囚心锁ツ 2021-02-04 08:11

I\'m making a parser (1 csv to 3 csv) script and I have a problem. I am French so in my language I have letters like: é è à ....

A customer sent me a csv fi

相关标签:
1条回答
  • 2021-02-04 08:39

    Put the output into another file. Don't overwrite the old one.

    iconv -f "windows-1252" -t "UTF-8" import.csv -o new_import.csv
    

    iconv fails when reading and writing to the same file.

    0 讨论(0)
提交回复
热议问题