Skip to main content

Specifying the Network Encoding

Specifying the Network Encoding

The network encoding of the Terminal application controls how characters are translated at the following times:

  • When the Terminal application translates keyboard input into its display memory, which uses Unicode. Characters received from the keyboard are translated from the single or multibyte character stream using the current Windows input character set. This means that if you change your input language, the application recognizes the change and adapts to it. This enables you to type in mixed languages; the application recognizes it and translates properly into its internal Unicode representation. If you use mixed-language input, select UTF8 as your network encoding and the $ZMODE I/O translation table.

  • When the Terminal application communicates with a peer server. Characters transmitted to the server are translated from the internal Unicode representation to a network encoding and characters received from the server are translated from the network encoding to Unicode.

The default network encoding is UTF8.

To specify the network encoding, select Edit > Network Encoding. This displays a dialog box where you can choose the network encoding for the Terminal application to use. There are 4 choices: UTF8, Windows, ISO, and EUC. Because these encodings are not all relevant to every input locale, only the relevant choices are enabled on the menu.

UTF8 Encoding

When you select the UTF8 option, the Terminal application translates the internal Unicode characters to UTF8 on output to the server and from UTF8 when received from the server. If you select UTF8, the InterSystems IRIS® data platform I/O translation for your principal I/O device must be UTF8. You can determine the I/O translation from $ZMODE. It is the fourth field; fields are delimited by backslashes (\).

Windows Encoding

When you select the Windows option, the Terminal application uses the current Windows input code page to translate I/O between the Terminal application and the server, to and from the internal Unicode character set encoding. When you use the Windows encoding, make sure to set the InterSystems IRIS I/O translation ($ZMODE) to that it expects the character set represented by the active Windows code page.

ISO Encoding

When you select the ISO option, the Terminal application uses the following ISO 8859-X code pages to translate I/O to and from the peer server. The Terminal application selects the appropriate ISO code page based on the current Windows input code page. The following mappings are enabled:

Language Region ISO Standard Windows Code Page Network Code Page
Western European 8859-15 1252 28605
Central European 8859-2 1250 28592
Cyrillic 8859-1 1251 28591
Greek 8859-7 1253 28597
Turkish 8859-9 1254 28599
Hebrew 8859-8 1255 28598
Arabic 8859-6 1256 28596
Baltic Rim 8859-4 1257 28594
Korea iso-2022-kr 949 50225
Japan (JIS) N/A 932 50220

All other Windows input code pages use the Windows code page if the ISO network encoding is selected.

When using the ISO encoding, you must ensure that the InterSystems IRIS I/O translation shown in $ZMODE is consistent with the character set represented by the active ISO code page used by the Terminal application.

EUC Encoding

The EUC encoding is relevant to far Eastern languages and is used to communicate with certain UNIX® systems. When you select the EUC option, the Terminal application uses the following code pages to translate I/O to and from the server. The Terminal application selects the appropriate EUC code page based on the current Windows input code page. The following mappings are enabled:

Language Region ISO Standard Windows Code Page Network Code Page
Japanese N/A 932 51932
Simplified Chinese N/A 936 51936
Korean N/A 949 51949

Japanese (JIS) support is provided under the ISO network encoding using the 50220 code page to translate to/from the internal Unicode.

FeedbackOpens in a new tab