utilsDecode8bit

Attempts to convert text in an unknown 8bit/multibyte charset into UTF-8 by finding the charset which will convert the most bytes into valid UTF-8 characters as possible. If no exact match can be found, it will choose the best match and convert invalid byte sequences into question-marks (?) in the returned string buffer.

string
utilsDecode8bit

Parameters

options gmime.parser_options.ParserOptions

a #GMimeParserOptions or null

text ubyte[]

input text in unknown 8bit/multibyte character set

Return Value

Type: string

a UTF-8 string representation of text.