剑道第一仙

导航

Linux文件、参数转字符集编码格式

Linux文件、参数转字符集编码格式

## 参数GBK/ISO-8859转UTF8
target_context=$(echo "$source_context" | iconv -f GBK -t UTF-8)
## 文件GBK/ISO-8859转UTF8
iconv -f GBK -t UTF-8 input.txt > output.txt

 

posted on 2024-08-20 16:30  剑道第一仙  阅读(18)  评论(0)    收藏  举报