OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/W, TP1/Client/P

[Contents][Index][Back][Next]

Appendix A.2 Conversion of shift-JIS codes and KEIS codes

The following table explains how shift-JIS codes and KEIS codes are converted.

Table A-2 Specifications for conversion of Shift-JIS and KEIS codes

Shift-JIS code range KEIS code range Conversion specifications
Shift-JIS to KEIS KEIS to shift-JIS
1st byte:
81 to 9F and E0 to EF
2nd byte:
40 to 7E and 80 to FC
1st byte:
A1 to FE
2nd byte:
A1 to FE
The Shift-JIS codes are mapped to the KEIS basic character set and extended character set 1. The KEIS codes are mapped to the shift-JIS standard kanji code area.
1st byte:
F0 to FC
2nd byte:
40 to 7E and 80 to FC
1st byte:
41 to A0
2nd byte:
A1 to FE
The Shift-JIS codes are mapped to the KEIS gaiji area by using the CommuniNet code mapping utility.
For details, see the manual CommuniNet Version 3.
Note that the dc_clt_code_convert function converts these codes to spaces.
The KEIS codes are mapped to the shift-JIS gaiji area by using the CommuniNet code mapping utility.
For details, see the manual CommuniNet Version 3.
Note that the dc_clt_code_convert function converts these codes to spaces.

The following table shows conversion from shift-JIS to KEIS83.

Table A-3 Conversion from shift-JIS to KEIS83

L/H 81 82 ... 9E 9F E0 E1 ... EE EF F0...FC
00
...
3F
#1
40 A1A1 A3A1 ... DBA1 DDA1 DFA1 E1A1 ... FBA1 FDA1 #2
41 A1A2 A3A2 ... DBA2 DDA2 DFA2 E1A2 ... FBA2 FDA2
... ... ... ... ... ... ... ... ... ... ...
7E A1DF A3DF ... DBDF DDDF DFDF E1DF ... FBDF FDDF
7F #1
80 A1E0 A3E0 ... DBE0 DDE0 DFE0 E1E0 ... FBE0 FDE0 #2
81 A1E1 A3E1 ... DBE1 DDE1 DFE1 E1E1 ... FBE1 FED1
... ... ... ... ... ... ... ... ... ... ...
9D A1FD A3FD ... DBFD DDFD DFFD E1FD ... FBFD FDFD
9E A1FE A3FE ... DBFE DDFE DFFE E1FE ... FBFE FDFE
9F A2A1 A4A1 ... DCA1 DEA1 E0A1 E2A1 ... FBA1 FEA1
A0 A2A2 A4A2 ... DCA2 DEA2 E0A2 E2A2 ... FBA2 FEA2
... ... ... ... ... ... ... ... ... ... ...
FB A2FD A4FD ... DCFD DEFD E0FD E2FD ... FBFD FEFD
FC A2FE A4FE ... DCFE DEFE E0FE E2FE ... FBFE FEFE
FD
...
#1

Legend:
...: Omitted.

#1:
These codes are assumed to be undefined kanji codes. The dc_clt_code_convert and dc_clt_code_convert_exec functions convert these codes to spaces or else return an error, depending on the specification of the flags argument.

#2:
These codes are converted to shift-JIS gaiji codes.
However, if the dc_clt_code_convert function is used, these codes are converted to spaces.

The following table shows conversion from KEIS83 to shift-JIS.

Table A-4 Conversion from KEIS83 to shift-JIS

L/H 00...40 41...A0 A1 A2 ... FD FE FF
00 #1 #3
...
A0
A1 #2 8140 819F ... EF40 EF9F #3
A2 8141 81A0 ... EF41 EFA0
A3 8142 81A1 ... EF42 EFA1
A4 8143 81A2 ... EF43 EFA2
... ... ... ... ... ...
DF 817E 81DD ... EF7E EFDD
E0 8180 81DE ... EF80 EFDE
E1 8181 81DF ... EF81 EFDF
... ... ... ... ... ...
FE 819E 81FC ... EF91 EFFC
FF #3

Legend:
...: Omitted.

#1:
These codes are converted as one-byte control codes in EBCDIK and EBCDIC.

#2:
These codes are converted to shift-JIS gaiji codes.
However, if the dc_clt_code_convert function is used, these codes are converted to spaces.

#3:
These codes are assumed to be undefined kanji codes. The dc_clt_code_convert and dc_clt_code_convert_exec functions convert these codes to spaces or else return an error, depending on the specification of the flags argument.

The following tables show the code mappings between shift-JIS, KEIS78, and KEIS83.

Table A-5 Code mappings between shift-JIS, KEIS78, and KEIS83 (1)

[Figure]

Table A-6 Code mappings between shift-JIS, KEIS78, and KEIS83 (2)

[Figure]

The following two tables show code conversion from JIS to EBCDIK.

Table A-7 Code conversion from JIS to EBCDIK (1)

[Figure]

Table A-8 Code conversion from JIS to EBCDIK (2)

[Figure]

The following two tables show code conversion from EBCDIK to JIS.

Table A-9 Code conversion from EBCDIK to JIS (1)

[Figure]

Table A-10 Code conversion from EBCDIK to JIS (2)

[Figure]

The following two tables show code conversion from JIS to EBCDIC.

Table A-11 Code conversion from JIS to EBCDIC (1)

[Figure]

Table A-12 Code conversion from JIS to EBCDIC (2)

[Figure]

The following two tables show code conversion from EBCDIC to JIS.

Table A-13 Code conversion from EBCDIC to JIS (1)

[Figure]

Table A-14 Code conversion from EBCDIC to JIS (2)

[Figure]