
226
付録 B 日本語処理
$ iconv -f SJIS -t UTF-8 sjis.txt
日本語
-f ENCODING, --from-code ENCODING :
入力文字コード
-t ENCODING, --to-code ENCODING :
出力文字コード
これらのオプションに指定することのできる文字コードは
-l
(
--list
)オプショ
ンで確認することができます。
$ iconv -l
The following list contains all the coded character sets known. This does
not necessarily mean that all combinations of these names can be used for
the FROM and TO command line parameters. One coded character set can be
listed with several different names
(
aliases
)
.
437, 500, 500V1, 850, 851, 852, 855, 856, 857, 860, 861, 862, 863, 864, 865,
866, 866NAV, 869, 874, 904, 1026, 1046, 1047, 8859_1, 8859_2, 8859_3, 8859_4,
8859_5, 8859_6, 8859_7, 8859_8, ...