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.
| options |
a ParserOptions or null |
| text |
input text in unknown 8bit/multibyte character set |
| len |
input text length |
|
a UTF-8 string representation of |