ITPub博客

首页 > Linux操作系统 > Linux操作系统 > linux转换字符编码

linux转换字符编码

原创 Linux操作系统 作者:celestezhang 时间:2015-10-20 17:25:18 0 删除 编辑
[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博客 ” ,链接:http://blog.itpub.net/29898569/viewspace-1815232/,如需转载,请注明出处,否则将追究法律责任。

上一篇: mongodb分片
请登录后发表评论 登录
全部评论

注册时间:2014-09-19

  • 博文量
    39
  • 访问量
    93674