How to change encoding in many files?

前端 未结 4 935
甜味超标
甜味超标 2020-12-17 03:10

I try this:

find . -exec iconv -f iso8859-2 -t utf-8 {} \\;

but output goes to the screen, not to the same file. How to do it?

4条回答
  •  不思量自难忘°
    2020-12-17 03:54

    read about enconv.
    If you need to convert to your current terminal encoding you can do it like that:

    find . -exec enconv -L czech {}\;
    

    Or exactly what you wanted:

    find . -exec enconv -L czech -x utf8 {}\;
    

提交回复
热议问题