Constant

UNI_BAD_ENCODING

Indicates a malformed character sequence was encountered.

Since v1.0
enum unistat {
    UNI_BAD_ENCODING,
}

Discussion 🔗

This failure code indicates a malformed character sequence was encountered when decoding text. Examples of malformed character sequences would be overlong sequences in UTF-8 or unpaired surrogate characters in UTF-16.