ISO 2022-JP (JIS) Text Codec

The JIS codec provides conversion to and from ISO 2022-JP.

The environment variable 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鈥檚 XML Japanese Profile , because it names and explains all the widely used mappings. Here are brief descriptions, written by Serika Kurusugawa:

  • 鈥渦nicode-0.9鈥 or 鈥渦nicode-0201鈥 for Unicode style. This assumes JISX0201 for 0x00-0x7f. (0.9 is a table version of jisx02xx mapping used for Unicode 1.1.)

  • 鈥渦nicode-ascii鈥 This assumes US-ASCII for 0x00-0x7f; some chars (JISX0208 0x2140 and JISX0212 0x2237) are different from Unicode 1.1 to avoid conflict.

  • 鈥渙pen-19970715-0201鈥 (鈥渙pen-0201鈥 for convenience) or 鈥渏isx0221-1995鈥 for JISX0221-JISX0201 style. JIS X 0221 is JIS version of Unicode, but a few chars (0x5c, 0x7e, 0x2140, 0x216f, 0x2131) are different from Unicode 1.1. This is used when 0x5c is treated as YEN SIGN.

  • 鈥渙pen-19970715-ascii鈥 (鈥渙pen-ascii鈥 for convenience) for JISX0221-ASCII style. This is used when 0x5c is treated as REVERSE SOLIDUS.

  • 鈥渙pen-19970715-ms鈥 (鈥渙pen-ms鈥 for convenience) or 鈥渃p932鈥 for Microsoft Windows style. Windows Code Page 932. Some chars (0x2140, 0x2141, 0x2142, 0x215d, 0x2171, 0x2172) are different from Unicode 1.1.

  • 鈥渏dk1.1.7鈥 for Sun鈥檚 JDK style. Same as Unicode 1.1, except that JIS 0x2140 is mapped to UFF3C. Either ASCII or JISX0201 can be used for 0x00-0x7f.

In addition, the extensions 鈥渘ec-vdc鈥, 鈥渋bm-vdc鈥 and 鈥渦dc鈥 are supported.

For example, if you want to use Unicode style conversion but with NEC鈥檚 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鈥檚 permission and the grateful thanks of the Qt team.

See also

Text Codec: ISO 2022-JP (JIS)