The JIS codec provides conversion to and from ISO 2022-JP.
环境变量
UNICODEMAP_JP
can be used to fine-tune the JIS, Shift-JIS, and EUC-JP codecs. The mapping names are as for the Japanese XML working group's
XML Japanese Profile
, because it names and explains all the widely used mappings. Here are brief descriptions, written by Serika Kurusugawa:
In addition, the extensions "nec-vdc", "ibm-vdc" and "udc" are supported.
For example, if you want to use Unicode style conversion but with NEC's extension, set
UNICODEMAP_JP
to
unicode-0.9, nec-vdc
. (You will probably need to quote that in a shell command.)
Most of the code here was written by Serika Kurusugawa, a.k.a. Junji Takagi, and is included in Qt with the author's permission and the grateful thanks of the Qt team.
另请参阅 文本编解码器:ISO 2022-JP (JIS) .