iconv

857阅读 0评论2008-11-18 ubuntuer
分类:LINUX

一个可以将文件转化为不同编码格式(字符集)的工具. 这个命令主要用来 本地化

   The  iconv program converts text from one encoding to another encoding.
       More precisely, it converts from the encoding given for the  -f  option
       to  the  encoding  given  for  the -t option. Either of these encodings
       defaults to the encoding of the current locale. All the inputfiles  are
       read  and  converted  in  turn;  if no inputfile is given, the standard
       input is used. The converted text is printed to standard output.

   EXAMPLES
       iconv -f ISO-8859-1 -t UTF-8
              converts input from the old West-European encoding ISO-8859-1 to
              Unicode.

       iconv --list
              lists the supported encodings.

上一篇:RS续篇
下一篇:bc应用