Internal use template for encoding a non-ASCII Basic Multilingual Plane code point to GB 18030. Unlike the other UCS planes (or most other UTFs), this has to use a large look-up table for at least part of it. Other UCS planes are handled by Template:GB18030/astral instead.

Makes use of Template:GB18030/pointer.

Usage

edit

Takes one argument: a Unicode code point in decimal. Outputs a GB 18030 byte sequence in hexadecimal, with bytes delimited by spaces.