Spreadsheet/Excel/Writer/Parser.php
*/
function _getSheetIndex($sheet_name)
{
-// if(function_exists('iconv')) {
-// $sheet_name = @iconv('UTF-8','UTF-16LE',$sheet_name);
-// }
+ if(function_exists('iconv')) {
+ $sheet_name = @iconv('UTF-8','UTF-16LE',$sheet_name);
+ }
if (!isset($this->_ext_sheets[$sheet_name])) {
return -1;
return $this->raiseError("Sheetname $name must be <= 31 chars");
}
} else {
-// if(function_exists('iconv')) {
-// $name = @iconv('UTF-8','UTF-16LE',$name);
-// }
+ if(function_exists('iconv')) {
+ $name = @iconv('UTF-8','UTF-16LE',$name);
+ }
}
// Check that the worksheet name doesn't already exist: a fatal Excel error.