[tingting.zhang@zhaopin-2-201 tmp]$ iconv --help
Usage: iconv [OPTION...] [FILE...]
Convert encoding of given files from one encoding to another.
Input/Output format specification:
-f, --from-code=NAME encoding of original text
-t, --to-code=NAME encoding for output
Information:
-l, --list list all known coded character sets
Output control:
-c omit invalid characters from output
-o, --output=FILE output file
-s, --silent suppress warnings
--verbose print progress information
-?, --help Give this help list
--usage Give a short usage message
-V, --version Print program version
Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
[tingting.zhang@zhaopin-2-201 tmp]$ iconv -f gb18030 -t ut8 company_shenzhen_simple.csv -o company_shenzhen_simple_utf8.csv
iconv: conversion to `ut8' is not supported
Try `iconv --help' or `iconv --usage' for more information.
[tingting.zhang@zhaopin-2-201 tmp]$ iconv -f gb18030 -t utf8 company_shenzhen_simple.csv -o company_shenzhen_simple_utf8.csv
iconv: illegal input sequence at position 100
[tingting.zhang@zhaopin-2-201 tmp]$ file company_shenzhen_simple
company_shenzhen_simple: cannot open (No such file or directory)
[tingting.zhang@zhaopin-2-201 tmp]$ file company_shenzhen_simple.csv
company_shenzhen_simple.csv: UTF-8 Unicode text
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29898569/viewspace-1815232/
,如需转载,请注明出处,否则将追究法律责任。