HP-UX TN3270 Users Guide, March 1998

Table Of Contents
82 Chapter 3
Getting Started with 3270 Emulation
Double-Byte Characters
Double-Byte Characters
The TN3270 emulation program supports the use of double-byte
characters, used in languages such as Japanese and Korean, to enable
the program to communicate with 3270 host programs that support
these characters.
Single-Byte, Double-Byte, and Mixed Fields
In a formatted presentation space, the host application can designate
certain fields as accepting single-byte characters only, double-byte
characters only, or mixed characters, in the same way that it designates
fields as accepting any characters or only numeric characters. In a mixed
field, you must use the SO and SI (shift out and shift in) characters to
indicate the start and end, respectively, of a group of double-byte
characters.
SO/SI Characters
In presentation space fields that accept both single-byte and double-byte
characters, the two special characters SO and SI (shift out and shift in)
are used to indicate the start and end of a group of double-byte
characters. Single-byte characters are standard, so it may help you to
think of shifting out of the regular mode to use double-byte characters
and then shifting back in to regular mode when you finish. These
characters are represented by the ASCII values 0x0E (SO) and 0x0F
(SI).
When a single-byte character is followed by a double-byte character, an
SO character is placed after the single-byte and before the double-byte
character. When a double-byte character is followed by a single-byte
character, or when the last character in the field is a double-byte
character, an SI character is placed after the double-byte character.
The default characters displayed are [`] (open single quote) for SO and
['] (close single quote) for SI; you can change these to different ASCII
characters if required. You may want to choose characters that are not
normally used for any other purpose in the host application, to make it
easier to recognize SO and SI characters. To do this, set the environment
variables SNAP3270_SO and SNAP3270_SI to the hexadecimal values