ISO 2022 shift sequences
The GL range may be switched between G0-3 with the locking shift sequences:
- si
- (called LS0 in 8-bit form) lock G0 into GL
- so
- (called LS1 in 8-bit form) lock G1 into GL
- esc n
- LS2: lock G2 into GL
- esc o
- LS3: lock G3 into GL
A single character from G2 or G3 may be placed in GL by preceding it with
- esc N
- SS2: shift single character from G2 into GL
- esc O
- SS3: shift single character from G3 into GL
The GR range may be switched between G1-3 with the locking shift sequences:
- esc ~
- LS1R: lock G1 into GR
- esc }
- LS2R: lock G2 into GR
- esc |
- LS3R: lock G3 into GR
In an 8-bit environment, the following single shifts are used:
- 8E
- SS2: shift single character from G2
- 8F
- SS3: shift single character from G3
The high bit on the following character is ignored.
See also the
Note on ISO notation.
Part of Notes on CJK Character Codes and Encodings.