标书制作公司网站,坪山网站建设哪家便宜,网络销售平台,跨境电商卖什么产品最赚钱1.命令作用
将给定文件的编码从一种编码转换为另一种编码(Convert encoding of given files from one encoding to another)
2.命令语法
Usage: iconv [OPTION...] [FILE...]
3.参数详解
OPTION: 输入/输出格式规范:
-f, --from-codeNAME#xff0c;原始文本编码-t, --t…1.命令作用
将给定文件的编码从一种编码转换为另一种编码(Convert encoding of given files from one encoding to another)
2.命令语法
Usage: iconv [OPTION...] [FILE...]
3.参数详解
OPTION: 输入/输出格式规范:
-f, --from-codeNAME原始文本编码-t, --to-codeNAME输出文件编码(目标文件编码)
信息:
-l, --list列出所有已知的编码字符集
输出控制:
-c从输出中省略无效字符(静默丢弃无法转换的字符而不是在遇到此类字符时终止)-o, --outputFILE输出文件-s, --silent抑制警告--verbose打印进度信息
4.常用用例
## 将文件log1从UTF8格式转换为GBK格式并输出到log1.1
[rootlocalhost test]# file log.csv
log.csv: UTF-8 Unicode text
[rootlocalhost test]#
[rootlocalhost test]# iconv -f UTF-8 -t GBK log.csv -o log1.csv
[rootlocalhost test]#
[rootlocalhost test]# file log1.csv
log1.csv: ISO-8859 text
[rootlocalhost test]#