Tries to read an ArrayBuffer into a string by guessing different encodings and returning the best that works to read the content.
The array buffer to read from
Optional encodings to try (defaults to ['utf-8', 'windows-1252', 'iso-8859-1'])
The best text and the best encoding used for the text
Tries to read an ArrayBuffer into a string by guessing different encodings and returning the best that works to read the content.