Country Codes and Character Sets

This chapter contains information useful in providing national language support for a network station or a gateway.

Table 4. Supported Keyboard Types
Keyboard Type (Characteristics)   Figure
Space Saving (single row of function keys; no numeric keypad)
(Picture of a keyboard)
Enhanced and Microsoft® Natural (single row of function keys; numeric keyboard)
(Picture of a keyboard)
5576-001 (Japanese keyboard with double row of function keys; numeric keypad)
(Picture of a keyboard)
5576-002 (Japanese keyboard with single row of function keys; numeric keypad)
(Picture of a keyboard)
5576-003 (Japanese keyboard with single row of function keys; no numeric keypad)
(Picture of a keyboard)
5576-A01 (Japanese keyboard with single row of function keys; numeric keypad)
(Picture of a keyboard)

Keyboard Country ID and Shift Support

Table 5 shows the keyboard country ID and shift support for each country.

Table 5. Keyboard Country ID and Shift Support
Keyboard
Country
Enhanced Keyboard ID Enhanced Keyboard-Lock Mode
Arabic-speaking 238, 239, 240, 253, 254 C
Austria 129 S
Baltic
 Estonia
 Latvia
 Lithuania
442
463
449
C
C
C
Belgium 120 S
Brazil 275 C
Canada (Bilingual) 058 C
Canada (445) 445 C
Cyrillic
 Bulgaria
 Belarus
 FYR Macedonia
 Russia (441)
 Russia (443)
 Serbia / Montenegro
 Ukraine

442
463
449
441
443
450
465

C
C
C
C
C
C
C
Denmark 159 C
Finland 153 C
France (120) 120 C
France (189) 189 S
Germany 129 S
Greece 319 C
Iceland 197 C
Israel 115 C
Italy (141) 141 C
Italy (142/293) 142 C
Japan - C
Laos 466 C
Latin America (Spanish) 171 C
Latin 1 (Open Systems) 1047 697
Latin 2
 Bosnia / Herzegovina (Latin)
 Croatia
 Czech Republic
 Hungary
 Poland
 Romania (Moldavia)
 Slovakia
 Slovenia

234
234
243
208
457, 214
446
245
234

C
C
C
C
C
C
C
C
C
Netherlands 143 C
Norway 155 C
Portugal 163 C
Spain 173 C
Sweden 153 C
Switzerland (French) 150F C
Switzerland (German) 150G C
Turkey (179/402) 179 C
Turkey (440) 440 C
U.K. (166) 166 C
U.K. (168) 168 C
U.S. (English) 101G C
Vietnam 461 C
Note:
-
Not selectable
S
Shift lock on key 30
C
Caps lock on key 30

IBM Japanese Character Set (2-Byte Codes)

The IBM® Japanese character set defines characters that consist of 2-byte codes.

Character Types

The following characters are included in this character set:

In addition to these characters, you can define up to 1880 (6205 for extended Unicode subset) user-defined characters.

Character Size

A kanji character is displayed on the screen using the area of two SBCS characters; it is usually enclosed with the shift characters hex 0E and hex 0F. Similarly, when a kanji character is printed, it uses the area of two SBCS printed characters. This size is equivalent to double the area used by alphabetic, numeric, and Katakana characters when they are displayed or printed.

IBM Kanji Codes

The following tables show the relationship between kanji and IBM kanji codes.

Table 6. IBM Japanese Character Set and IBM Kanji Codes
  1st byte (hex) 2nd byte (hex)
  40 41...   ...FE
40 space Reserved area  
41   Extended non-kanji set 134 characters
42
·
·
·
44
  Basic kanji set (includes space) 416 characters
45
·
·
·
55
  Basic kanji set 3226 characters
56
·
·
·
68
  Extended kanji set 3487 characters
69
·
·
·
7F
  User-defined characters 1880 characters
80
·
·
·
FE
  Reserved area  
Table 7. IBM Japanese Character Set and IBM Kanji Codes (Extended for Unicode Subset)
  1st byte (hex) 2nd byte (hex)
  40 41...   ...FE
40 space Reserved area  
41   Extended non-kanji set 134 characters
42
·
·
·
44
  Basic kanji set (includes space) 416 characters
45
·
·
·
55
  Basic kanji set 3226 characters
56
·
·
·
68
  Extended kanji set 3478 characters
69
·
·
·
B7
  User-defined characters 6205 characters
B8
·
·
·
A5
  New extended kanji set 5522 characters
A6
·
·
·
E9
  New extended non-kanji set 2035 characters
EA
·
·
·
FE
  Reserved area  
Note:
These tables do not show that all characters have a kanji code assigned. Each kanji character has a kanji number is addition to the IBM kanji code A kanji number is a decimal number up to five digits in length, which is used for entering a kanji-like symbol from keyboards that do not have "YOMI".

Following is the relationship between IBM kanji codes and kanji numbers:

kanji number = converted value of ((IBM kanji code) - x'4000')

All kanji characters can be entered using kanji numbers.

IBM Traditional Chinese Character Set

Table 8. IBM Traditional Chinese Host Code
  Number of Characters Code Range Low-Byte Range
DBCS Space 1 X'4040'  
DBCS Symbols 1003 X'4141' - X'4959' X'41' - X'FD', skipping X'7F'
Primary Chinese 5402 X'4C41' - X'68CB' X'41' - X'FD', skipping X'7F'
Secondary Chinese 7654 X'6941' - X'91C7' X'41' - X'FD', skipping X'7F'
User-Defined Area 6204 X'C241' - X'E2FD' X'41' - X'FD', skipping X'7F'

IBM Simplified Chinese Character Set, GBK Code

Table 9. IBM Simplified Chinese Character Set, GBK Code
  Number of Characters Host Code Range PC Code Range
DBCS Space 1 X'4040' X'A1A1'
GB 2312-80 Non-Chinese Character Set

(GBK/1)

X'4141'-X'47FE' (737) X'A1A1'-X'A9FE' (846)
GB 2312-80 Chinese Character Set

(GBK/2)

X'4841'-X'6CFE' (6763) X'B0A1'-X'F7FE' (6768)
ISO 10646-1 CJK unified ideographs

(GBK/3)

6080 X'8141'-X'A0FE', X'A141'-X'A181' X'8140'-X'A0FE' (Note 1)
ISO 10646-1 CJK unified ideographs ISO 10646-1 CJK compatibility

(GBK/4)

8160 X'A182'-X'A1FE', X'A241'-X'CCFE', X'CE41'-X'CEFE' X'AA40'-X'FEA0' (Note 1)
Big-5 Symbol Compatibility Ideographic Structure Symbols

(GBK/5)

X'CD41'-X'CDFE' (148) X'A840'-X'A9A0' (192) (Note 1)
User Definable Characters Area

(UDC 1 to 3)

1894 X'7641'-X'80FE' X'AAA1'-X'AFFE', X'F8A1'-X'FEFE', X'A140'-X'A7A0' (Note 1)
Note 1: X'7F' of second byte is excluded.

IBM Hangeul Character Set

Table 10. IBM Hangeul Host Code (833)
  Number of Characters Code Range Low-Byte Range
DBCS Space 1 X'4040'  
DBCS Symbols 939 X'4141' - X'4BFD' X'41' - X'FD', skipping X'7F'
Hanja Set 5265 X'5041' - X'6C45' X'41' - X'FD', skipping X'7F'
Hangeul and Jamo Set 2672 X'8441' - X'D3B7' X'41' - X'FD', skipping X'7F'
User-Defined Area 1880 X'D441' - X'DDFD' X'41' - X'FD', skipping X'7F'
Table 11. IBM Hangeul Host Code (1364)
  Number of Characters Code Range Low-Byte Range
DBCS Space 1 X'4040'  
Non-Hangeul/Hanja Set 1181 X'4141' - X'4E92' X'41' - X'FE'
Hanja Set 5265 X'5041' - X'6C45' X'41' - X'FE'
Hangeul and Jamo Set 11224 X'8441' - X'D3BD' X'41' - X'FE'
User-Defined Area 1880 X'D441' - X'DDFD' X'41' - X'FE'

Thai Language Support

Thai Display Mode Selection

Select Appearance -> Thai Compose Mode on emulator session.

Switching Keyboard between Thai and Latin

Press either Alt+left Shift or Alt+right Shift to toggle the keyboard between Thai and Latin.

Language Shift Status

The status line of each emulator session shows a language shift indicator. If keyboard is in Thai language shift, an indicator TH will appear in the status line.

Thai Display Composed Mode

Mode 1: Non-compose mode
No character composition occurs in this mode.
Mode 2: Composed mode
Thai characters are auto-composed in this mode. No column realignment is performed.
Mode 3: Composed with space alignment
In this mode of composing, three consecutive spaces cause column realignment. The realignment occurs whenever composing routine finds three consecutive spaces. Thus if all fields have at least three trailing spaces, then all fields of all records will be properly aligned.
Mode 4: Composed with EOF alignment
In this mode of composing, the EOF character (Hexadecimal 'EA') also causes column realignment. Whenever the composing routine finds a single EOF, it deletes the EOF and performs column realignment. If two consecutive EOFs are found, no realignment occurs, one EOF is deleted, and one EOF is treated as data.
Mode 5: Composed with space and EOF alignment
This mode of composing performs the column realignment function of both mode 3 and mode 4.

Printer Space Adjustment

If your printer needs space adjustment for Thai printing, add the following statement to PCSWIN.INI, which resides in the user-class application data directory:

 [Thai]
 PrintAdjust=x 

The value of x can be:

0
no adjustment (same as no PrintAdjust statement)
1
Perform adjustment when found three consecutive spaces
2
Perform adjustment when found EOF character
3
Perform adjustment when found three consecutive spaces or EOF character (combine 1 and 2)

Thai Scalable (Truetype) Font Support on Printers

Personal Communications provides a Thai Truetype font, ThaiPhuket. To print Thai characters, you can install a Thai scalable (Truetype) font as follows:

  1. Open the Control Panel Folder.
    1. Click Start on the task bar.
    2. Move pointer to Settings and click Control Panel.
  2. Open the Fonts Folder (Double-click the Fonts icon).
  3. On the file menu, select Install New Font.
  4. Click the drive and folder where Personal Communications is installed.
  5. Double-click on ThaiPhuket.