|Developer(s)||Various open-source and commercial developers|
|Operating system||Unix, Unix-like, Microsoft Windows, IBM i|
In Unix and Unix-like operating systems, iconv (an abbreviation of internationalization conversion) is a command-line program and a standardized application programming interface (API) used to convert between different character encodings. "It can convert from any of these encodings to any other, through Unicode conversion."
Most Linux distributions provide an implementation, either from the GNU Standard C Library (included since version 2.1, February 1999), or the more traditional GNU
libiconv, for systems based on other Standard C Libraries.
Unlike the libraries, the
iconv utility is licensed under GPL in both implementations.
The GNU libiconv implementation is portable, and can be used on various UNIX-like and non-UNIX systems. Version 0.3 dates from December 1999.
Most BSD systems use NetBSD's implementation, first appeared in December 2004.
Currently, over a hundred different character encodings are supported.
Under Microsoft Windows, the iconv library and the utility is provided by GNU's libiconv found in Cygwin and GnuWin32 environments; there is also a "purely Win32" implementation called "win-iconv" that uses Windows' built-in routines for conversion. The iconv function is also available for many programming languages.
iconv -f iso-8859-1
An input file
infile can be converted from ISO-8859-1 to UTF-8 and output to output file
iconv -f iso-8859-1 -t utf-8 <infile> -o <outfile>
- "R: Convert Character Vector between Encodings". astrostatistics.psu.edu. Retrieved 21 April 2018.
- "iconv". pubs.opengroup.org. Retrieved 21 April 2018.
- "iconv". www.opengroup.org. Retrieved 21 April 2018.
- "libiconv - GNU Project - Free Software Foundation (FSF)". www.gnu.org. Retrieved 21 April 2018.
- "iconv(3C)". docstore.mik.ua. Retrieved 21 April 2018.
- "glibc: iconv/iconv.c". Retrieved 30 November 2016.[permanent dead link]
- "glibc: iconv/iconv_prog.c". Retrieved 30 November 2016.[permanent dead link]
- "Cygwin Package Search: libiconv". Archived from the original on 30 November 2016. Retrieved 30 November 2016.
- "LibIconv for Windows". gnuwin32.sourceforge.net. Retrieved 21 April 2018.
- "win32-iconv". GitHub. Retrieved 30 November 2016.
- IBM. "IBM System i Version 7.2 Programming Qshell" (PDF). Retrieved 5 September 2020.
- "IBM Knowledge Center". www-01.ibm.com. Retrieved 21 April 2018.
|The Wikibook Guide to Unix has a page on the topic of: Commands|
|This Unix-related article is a stub. You can help Wikipedia by expanding it.|