iconv
iconv ( i nternationalization conv ersion) is a computer program and a standardized API , with the text between different encodings can be converted.
iconv API
The iconv API is the standard interface for converting strings from one encoding to another on Unix- like systems. The iconv program appeared around 1990 with the Unix Vr4 system; it has meanwhile been taken up by the Open Group and included as a standard in the X / Open Portability Guide , and is therefore part of the Single UNIX Specification (SUS).
All newer Linux distributions are equipped with an implementation of iconv()
, since iconv has meanwhile become part of the GNU C library , which serves as the basis for current Linux systems. In order to be able to use the function, appropriate locales must be installed for the library. These are available as a separate package, usually called glibc-locale, which is installed by default on most systems.
compatibility
Under Windows , iconv can be used via a Unix API emulation such as Cygwin or a port such as GnuWin32 .
Iconv is one of the supported libraries in PHP , which is provided as a dynamic link library under Windows .
See also
Web links
References to iconv:
-
iconv()
: codeset conversion function - Open Group (English) -
iconv(1)
: Convert encoding of given files from one encoding to another - Debian GNU / Linux Executable programs or shell commands man page -
iconv(3)
: perform character set conversion - Debian GNU / Linux library calls man page -
iconv(1)
: HP-UX 11i manual Page (English; PDF file; 41 kB)
Implementations of the iconv API:
- GNU libiconv, a free iconv implementation , licensed under the LGPL (English)
- libiconv as DLL for Windows (English)
- FreeBSD version of iconv (English)
- Citrus , the clib version of NetBSD (English)
- PHP function reference (German)