eucJP(5) — Macro Packages and Conventions
NAME
eucJP − A character encoding system (codeset) for Japanese
DESCRIPTION
The Japanese EUC (Extended UNIX Code), or eucJP, codeset consists of the following character sets:
•CS0 (ASCII or JIS Roman)
•CS1 (JIS X0208)
•CS2 (JIS Katakana)
•CS3 (JIS X0212)
CS0 is a primary character set. CS1, CS2, and CS3 are supplementary character sets. The MSB (Most Significant Bit) of the byte that represents a character in CS0 is set off, whereas the MSB of the bytes that represent characters in CS1, CS2, and CS3 is set on.
Japanese EUC Encoding
The representation of ASCII/JIS Roman and JIS X0208 characters in the Japanese EUC codeset is similar to how those characters are represented in the DEC Kanji codeset (refer to deckanji(5)). The two additional character sets, JIS Katakana and JIS X0212, are encoded in the Japanese EUC codeset by making use of the SS2 (Single Shift 2) and SS3 (Single Shift 3) control characters.
The Japanese EUC codeset provides the following two areas for representation of user-defined characters (UDC):
| Area Usage | Row Range | Number of Characters | Code Range |
| JIS X0208 | 85-94 | 940 | F5A1-FEFE |
| JIS X0212 | 78-94 | 1598 | SS3 [EEA1-FEFE] |
The representation of UDCs on these two code planes is identical to that for standard characters that occupy the same planes. Code ranges distinguish between UDCs and standard JIS X0208 and JIS X0212 characters that occupy the same plane.
Currently, the operating system does not support JIS X0212 (JIS Supplementary) characters.
Japanese EUC Fonts
For display devices, the operating system supports Japanese EUC characters by converting Japanese EUC code to DEC Kanji code and then using the fonts for DEC Kanji. Because the CS3 character set is not supported by the DEC Kanji codeset, CS3 characters cannot be displayed.
For printers, only printer-resident fonts that are provided with Japanese printers are supported. This means that Japanese fonts cannot be dynamically loaded to a printer.
For general information on printing non-English text, refer to i18n_printing(5).
SEE ALSO
Commands: locale(1)
Others: ascii(5), i18n_intro(5), i18n_printing(5), iconv_intro(5), deckanji(5), iso2022jp(5), Japanese(5), jiskanji(5), l10n_intro(5), sdeckanji(5), shiftjis(5)