decode package:utf8-string

Try to extract a character from a byte string. Returns Nothing if there are no more bytes in the byte string. Otherwise, it returns a decoded character and the number of bytes used in its representation. Errors are replaced by character '\0xFFFD'.
Decode a UTF8 string packed into a list of Word8 values, directly to String
Try to extract a character from a byte string. Returns Nothing if there are no more bytes in the byte string. Otherwise, it returns a decoded character and the number of bytes used in its representation. Errors are replaced by character '\0xFFFD'.
Try to extract a character from a byte string. Returns Nothing if there are no more bytes in the byte string. Otherwise, it returns a decoded character and the number of bytes used in its representation. Errors are replaced by character '\0xFFFD'.
Extract the first character for the underlying representation, if one is available. It also returns the number of bytes used in the representation of the character. See also uncons.
Decode a string using decode using a String as input. This is not safe but it is necessary if UTF-8 encoded text has been loaded into a String prior to being decoded.