iconv Utility

From GM-RKB
Jump to navigation Jump to search

An iconv Utility is a utility program that is a character encoding conversion system (to solve character encoding conversion tasks).

  • Context:
    • It can (typically) be executed with a command pattern of iconv -f old-encoding -t new-encoding file.txt > newfile.txt
  • Example(s):
    • iconv -l
    • iconv -c -f utf-8 -t ascii
  • See: Character Encoding.


References

2015

2009

  • http://www.gnu.org/savannah-checkouts/gnu/libiconv/documentation/libiconv-1.13/iconv.1.html
    • QUOTE: 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.

      The encodings permitted are system dependent.