find target -type d -exec mkdir -p utf/{} \;
find target -type f -exec iconv -f GBK -t UTF-8 {} -o utf/{} \;
target 为目标目录,utf 为转换之后的目录
-c: 强制转换
iconv -c -f GBK -t UTF-8 nginx.1 -o nginx.new
支持的编码见这里:
http://www.gnu.org/software/libiconv/
参考资料