Iconv
In Unix and Unix-like operating systems, iconv (an abbreviation of internationalization conversion)[2] is a command-line program[3] and a standardized application programming interface (API)[4] used to convert between different character encodings. "It can convert from any of these encodings to any other, through Unicode conversion."[5] HistoryInitially appearing on the HP-UX operating system,[6] ImplementationsMost Linux distributions provide an implementation, either from the GNU Standard C Library (included since version 2.1, February 1999), or the more traditional GNU The Unlike the libraries, the The uconv utility from International Components for Unicode provides an iconv-compatible command-line syntax for transcoding. Most BSD systems use NetBSD's implementation, which first appeared in December 2004. SupportCurrently, over a hundred different character encodings are supported in the GNU variant.[5] PortsUnder Microsoft Windows, the iconv library and the utility is provided by GNU's libiconv found in Cygwin[9] and GnuWin32[10] environments; there is also a "purely Win32" implementation called "win-iconv" that uses Windows' built-in routines for conversion.[11] The iconv function is also available for many programming languages. The iconv command has also been ported to the IBM i operating system.[12] Usage
iconv -f iso-8859-1
An input file iconv -f iso-8859-1 -t utf-8 <infile> -o <outfile>
See alsoReferences
External linksThe Wikibook Guide to Unix has a page on the topic of: Commands |