ExcelReader won't output in the default encoding unless the input xls file is UTF-16LE. If the file is just ASCII (CP1252), then the output will always be CP1252 regardless of the _defaultEncoding setting. This patch moves the bulk of the encoding code into a new _encode() function. Then calls _encode() from _encodeUTF16() and calls _encodeOutput() from _parse() which passes the $asciiEncoding variable.
Log in to post a comment.