Expand description
UCS2 user data (23.038 §6.2.3). Encoded as UTF-16BE, so characters outside the BMP travel as surrogate pairs, as every current handset expects.
Enums§
Functions§
- decode
- UTF-16BE bytes → text. Unpaired surrogates and a trailing odd octet become U+FFFD.
- decode_
strict - Strict variant of
decode. - encode
- Text → UTF-16BE bytes.
- units
- Number of UTF-16 code units (2 octets each) for
c.