Iconv
From DssWiki
{{DISPLAYTITLE:{{#if:|:|}}iconv}}
iconv is a computer program and a standardized API used to convert between different character encodings.
Contents |
[edit] iconv API
The iconv API is the standard programming interface for converting character strings from one character encoding to another in Unix-like operating systems. Initially appearing on the HP-UX operating system, it was standardized within XPG4 and is part of the Single UNIX Specification.
All recent Linux distributions contain a free implementation of iconv() as part of the GNU C Library which is the C library for current Linux systems. To use it, the GNU glibc locales need to be installed, which is provided as a separate package, named glibc-locale usually, and is normally installed by default.
[edit] Compatibility
Under Windows, the iconv binary (and thus, likely also the API) is provided by the Cygwin and GnuWin32 environments.
Iconv is also one of the libraries supported by PHP[1] (also under Windows using a dll), so it is possible to use iconv() from a PHP program.
iconv is also required by libxml, so any application which uses libxml also requires iconv.
[edit] See also
[edit] External links
- extensive iconv() HP-UX manual page with example code
- iconv() OpenGroup Standards page
- Online interface to the iconv program
- giconv a graphical interface to a patched libiconv version that recodes ASMO449+ to UTF-8
Implementations of the iconv API:
- GNU libiconv, a free iconv implementation, licensed under the LGPL
- FreeBSD port of iconv, under FreeBSD license (assumed)
- Citrus, the NetBSD clib implementation, under NetBSD license (assumed)
{{#if: |
Unix command line programs and builtins (more) | |||
| File and file system management: | cat | chattr | cd | chmod | chown | chgrp | cksum | cmp | cp | du | df | file | fsck | fuser | ln | ls | lsof | mkdir | mount | mv | pwd | rm | rmdir | split | touch | ||
| Process management: | at | chroot | crontab | exit | kill | killall | nice | pgrep | pidof | pkill | ps | sleep | time | top | wait | watch | ||
| User Management/Environment: | env | finger | id | mesg | passwd | su | sudo | uname | uptime | w | wall | who | whoami | write | ||
| Text processing: | awk | comm | cut | ed | ex | fmt | head | iconv | join | less | more | paste | pg | sed | sort | tac | tail | tr | uniq | wc | xargs | ||
| Shell programming: | basename | echo | expr | false | printf | test | true | unset | Printing: | lp |
| Communications: inetd | netstat | ping | rlogin | traceroute | Searching: find | grep | strings | Miscellaneous: banner | bc | cal | dd | man | size | yes | |
