I've got an Adobe AIR app where users can process text files from their filesystems. I've been assuming UTF-8, but in the case that a text file is in some other encoding (eg iso-8859-1 or iso-2022-kr), how should I determine (best guess) the encoding type of the text file so I can read the contents into a String?
FileStream.readMultiByte supports an intimidating range of types.