MDN / Code unit
MDN / Code unit
A code unit is the basic component used by a character encoding system (such as UTF-8 or UTF-16). A character encoding system uses one or more code units to encode a Unicode .
In , each code point is encoded using between one and four 8-bit code units.
In , each code point is encoded using one or two 16-bit code units.