Top page [encodings]

Escape sequences

Escape sequences are sequences of characters which shift computer encodings from one mode to another. Encodings such as ISO-2022-JP use escape sequences to show the beginning and end of Japanese text, whereas encodings such as EUC-JP and UTF-8 do not.

Standard escape sequences

Encoding Escape sequence
Hexadecimal ASCII
One-byte encodings
JIS-Roman 1B 28 4A ESC ( J
ASCII 1B 28 42 ESC ( B
Half-width katakana 1B 28 49 ESC ( I
Two-byte encodings
JIS C 6226-1978 1B 24 40 ESC $ @
JIS X 0208-1983 1B 24 42 ESC $ B
JIS X 0208-1990 1B 26 40 1B 24 42 ESC & @ ESC $ B
JIS X 0212-1990 1B 24 2B 44 ESC $ ( D

References

  • Understanding Japanese Information Processing