Strovent SystemsSign in
Reference

Thai, Greek, Cyrillic or Asian text on a 3270 or 5250 screen: EBCDIC code pages

A 3270 or 5250 screen shows non-Latin text only with the host's code page. The EBCDIC pages for Thai, Greek, Hebrew, Arabic, Cyrillic and DBCS text.

A 3270 or 5250 terminal does not receive Unicode. The host sends EBCDIC bytes, and the terminal turns each byte into a character with a code page. The same byte is a different letter in a Thai code page and in a US one. So a terminal shows Thai, Greek or Japanese text only if it uses the code page the host data was written in. With the wrong page you see Latin letters, accented characters or symbols in place of the real text. See EBCDIC and code pages for how this works.

Single-byte code pages for other scripts

IBM defines an EBCDIC code page for each script. Some of the host pages listed in IBM i's CCSID table:

CCSID   Script or country
838     Thailand (extended range)
1160    Thai host with euro
875     Greece
424     Hebrew
420     Arabic-speaking countries
880     Cyrillic Multilingual

These are single-byte: one byte per character, like the Latin pages. A terminal can show them if it has the matching table, and the host has to send data in that page. On IBM i, the Telnet server converts between the job's CCSID and the character set the client asked for; see 5250 code pages and CCSIDs.

Japanese, Korean and Chinese (DBCS)

These scripts have far more characters than one byte can hold. Their host code pages, such as 930 (Japan Katakana), 933 (Korea) and 935 (Simplified Chinese), mix single-byte and double-byte (DBCS) characters. A terminal needs DBCS support, not only a table, to show them. DBCS 3270 and 5250 sessions also need a host and application set up for DBCS.

What to check

  1. Find out which code page the host data uses. On IBM i, the job's CCSID comes from the user profile or the system value QCCSID; see CCSID 65535 on IBM i, hex output and "no conversion". On z/OS, ask the systems programmer which code page the application uses.
  2. Check that your terminal offers that code page. If it offers only Latin pages, non-Latin text cannot be shown correctly, whatever the host does.
  3. If only a few symbols are wrong but the text is otherwise Latin, it is a Latin page mismatch instead; see EBCDIC and code pages.

Sources

Spotted a mistake? Email [email protected].