Code set conversion

Code set conversion

Code set conversion between the EUC code set and Shift-JIS code set follows the tables given below.

1. OCMP (NEC and Sony)

SJISEUC
0x00-0x7F
0xA1-0xDF
0x8140-0xEFFC
0xF040-0xFCFC
0x00-0x7F in G0
0xA1-0xDF in G2
1st column of 1st row to 94th column of 94th row in G1
1st column of 1st row to 94th column of 26th row in G3

2. Fujitsu

SJISEUC(U90)
0x00-0x7F
0xA1-0xDF
0x8140-0xEFFC
0xF040-0xFCFC
0x00-0x7F in G0
0xA1-0xDF in G2
1st column of 1st row to 94th column of 94th row in G1
1st column of 69th row to 94th column of 94th row in G3

SJISEUC(S90)
0x00-0x7F
0xA1-0xDF
0x8140-0xEAFC
0xEB40-0xEFFC
0xF040-0xF4FC
0x00-0x7F in G0
0xA1-0xDF in G2
1st column of 1st row to 94th column of 84th row in G1
Unconvertible
1st column of 85th row to 94th column of 94th row in G1

3. HP-UX

SJISEUC
0x00-0x7F
0xA1-0xDF
0x8140-0xEFFC
0xF040-0xF4FC
0xF540-0xF9FC
0xFA40-0xFCFC
0x00-0x7F in G0
0xA1-0xDF in G2
1st column of 1st row to 94th column of 94th row in G1
Unconvertible
1st column of 79th row to 94th column of 88th row in G3
1st column of 89th row to 94th column of 94th row in G3
(From PRO Common Japanese Localizatioin Environment Specification Version 1.0, P. 152)

4. IBM

SJISEUC
0x00-0x7F
0xA1-0xDF
0x8140-0xEAFC
0xF040-0xF9FC

0xFA40-0xFCFC
0x00-0x7F in G0
0xA1-0xDF in G2
1st column of 1st row to 94th column of 84th row in G1
1st column of 85th row to 94th column of 94th row in G1 and
1st column of 85th row to 94th column of 94th row in G3
1st column of 1st row to 94th column of 84th row in G3

5. DEC

5.1 Shift-JIS -> DEC Kanji

SJISDEC Kanji
0x00-0x7F
0xA1-0xDF
0x8140-0xEFFC
0xF040-0xFCFC

0x00-0x7F in G0
0xA1-0xDF in G2
1st column of 1st row to 94th column of 94th row in G1
1st column of 1st row to 94th column of 26th row in
DEC extended characters

5.2 Shift-JIS <- DEC Kanji

SJISDEC kanji
0x00-0x7F
0xA1-0xDF
0x8140-0xEFFC
0xF040-0xFCFC

0x81A0

0x00-0x7F in G0
0xA1-0xDF in G2
1st column of 1st row to 94th column of 94th row in G1
1st column of 1st row to 94th column of 94th row in
DEC extended characters
1st column of 27th row to 94th column of 31th row in
DEC extended characters

5.3 Shift-JIS -> Japanese EUC

SJISEUC
0x00-0x7F
0xA1-0xDF
0x8140-0xEAFC
0xF040-0xF4FC
0xF5FC-0xF9FC
0xFAFC-0xFCFC
0x00-0x7F in G0
0xA1-0xDF in G2
1st column of 1st row to 94th column of 84th row in G1
1st column of 85th row to 94th column of 94th row in G1
1st column of 85th row to 94th column of 94th row in G3
1st column of 78th row to 94th column of 84th row in G3

5.4 Shift-JIS <- Japanese EUC

SJISEUC
0x00-0x7F
0xA1-0xDF
0x8140-0xEAFC
0xF040-0xF4FC
0xF540-0xF940
0xFA40-0xFCFC
0x81A0
0x00-0x7F in G0
0xA1-0xDF in G2
1st column of 1st row to 94th column of 84th row in G1
1st column of 85th row to 94th column of 94th row in G1
1st column of 85th row to 94th column of 94th row in G3
1st column of 78th row to 94th column of 83th row in G3
1st column of 84th row to 94th column of 84th row in G3

5.5 Shift-JIS -> Super DEC Kanji

SJISSuper DEC Kanji
0x00-0x7F
0xA1-0xDF
0x8140-0xEFFC
0xF040-0xFCFC

0x00-0x7F in G0
0xA1-0xDF in G0
1st column of 1st row to 94th column of 94th row in G1
1st column of 1st row to 94th column of 26th row in
DEC extended characters

5.6 Shift-JIS <- Super DEC Kanji

SJISSuper DEC Kanji
0x00-0x7F
0xA1-0xDF
0x8140-0xEFFC
0xF040-0xFCFC

0x81A0

0x00-0x7F in G0
0xA1-0xDF in G2
1st column of 1st row to 94th column of 94th row in G1
1st column of 1st row to 94th column of 26th row in
DEC extended characters
1st column of 27th row to 94th column of 94th row in
DEC extended characters

6. Mitsubishi Electric

SJISEUC
0x00-0x7F
0xA1-0xDF
Rows 1 to 8
Rows 9 to 12
Row 13
Rows 14 and 15
Rows 16 to 84
Rows 85 to 94
Rows 95 to 99
Rows 100 to 103
Rows 104 and 105
Rows 106 to 114
Rows 115 to 119
Row 120
0x00-0x7F in G0
0xA1-0xDF in G2
Rows 1 to 8 G1
Unconvertible
Row 13 of G1
Unconvertible
Rows 16 to 84 in G1
Unconvertible
Rows 90 to 94 in G1
Rows 9 to 12 in G1
Rows 14 and 15 in G1
Unconvertible
Rows 85 to 89 in G1
Unconvertible
The above conversion specifications are changeable on user side.

7. Informix

SJISEUC
0x00-0x7F
0xA1-0xDF
0x8140-0xEFFC
0xF040-0xFCFC
0xFDA1A1-0xFDFEFE
0x00-0x7F in G0
0xA1-0xDF in G2
1st column of 1st row to 94th column of 94th row in G1
Non-standard 0x8D + SJIS 2bytes
1st column of 1st row to 94th column of 94th row in G3

SJISEUC
0x00-0x7F
0xA1-0xDF
0x8140-0xEFFC
0xF040-0xFCFC
0x00-0x7F in G0
0xA1-0xDF in G2
1st column of 1st row to 94th column of 94th row in G1
1st column of 1st row to 94th column of 26th row in G3

8. Concurrent Japan

No specification.

9. Nihon Pyramid

SJISEUC
0x00-0x7F
0xA1-0xDF
0x8140-0xEFFC
0x00-0x7F in G0
0xA1-0xDF in G2
1st column of 1st row to 94th column of 94th row in G1

10. Oracle (Oracle7 Release 7.1.3)

10.1 Shift-JIS -> Japanese EUC

SJISEUC
0x00-0x7F
0xA1-0xDF
0x8140-0xE9FC
0xEA40-0xEA43
0xEA44-0xFFFC
0x00-0x7F in G0
0xA1-0xDF in G2
1st column of 1st row to 94th column of 83th row in G1
1st column of 84th row to 4th column of 84th row in G1
Full-width "?"

10.2 Japanese EUC -> Shift-JIS

SJISEUC
0x00-0x7F
0xA1-0xDF
0x8140-0xEFFC
0x00-0x7F in G0
0xA1-0xDF in G2
1st column of 1st row to 94th column of 94th row in G1

11 Sybase

SJIS(server side)EUC(client side)
0x00-0x7F
0xA1-0xDF
0x8140-0xEFFC
0xF040-0xFCFC
0x00-0x7F in G0
0x3F ("?") in G0
1st column of 1st row to 94th column of 94th row in G1
Two 0x3F's ("??") in G0

SJIS(client side)EUC(server side)
0x00-0x7F
0xA1-0xDF
0x8140-0xEFFC
0xF040-0xFCFC
0x00-0x7F in G0
0xA1-0xDF in G2
1st column of 1st row to 94th column of 94th row in G1
Two 0x3F's ("??") in G0
Only when the server side is in euc, conversion of half-width Katakana is supported.

inserted by FC2 system