#20 ExcelReader doesn't output in the _defaultEncoding

open
nobody
None
5
2008-08-28
2008-08-28
Anonymous
No

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.

Discussion

  • reader.php patch to always try to output in the _defaultEncoding where possible