| ICONV(1) | General Commands Manual | ICONV(1) |
iconv — codeset
conversion utility
iconv |
[-cs] -f
from_name -t
to_name [file ...] |
iconv |
-f from_name
[-cs] [-t
to_name] [file ...] |
iconv |
-t to_name
[-cs] [-f
from_name] [file ...] |
iconv |
-l |
The iconv utility converts the codeset of
file (or from standard input if no file is specified)
from codeset from_name to codeset
to_name and outputs the converted text on standard
output.
The following options are available:
-ciconv outputs an “invalid character”
specified by the to_name codeset when it encounters
a character which is valid in the from_name codeset
but does not have a corresponding character in the
to_name codeset.-f-l-siconv outputs the number of
“invalid characters” to standard error if they exist. This
option prevents this behaviour.-tThe iconv utility exits 0 on
success, and >0 if an error occurs.
iconv conforms to IEEE
Std 1003.1-2001 (“POSIX.1”).
iconv first appeared in
NetBSD 2.0.
| March 20, 2008 | NetBSD 11.0 |