Apr 15, 2009 at 12:00 PM
Edited Apr 15, 2009 at 5:51 PM
I encountered some problems with PHPExcel, which could be solved by a configuration file.
One problem was that I get an error when Writer trying to write to a temporary directory, so I had to change permissions on folder with my script.
The second problem is the encodings. Default encoding for russian letters is "Windows-1251" and Writer makes an error on such strings.
That is why i cant write setCellValue('A1', $MyString)
and I always have to write setCellValue('A1', iconv('Windows-1251', 'UTF-8', $MyString))
I think if I can set this options in config file it will be much better.
Smthing like this:
//Temp directory. Comment this line to use system default directory
$PHPEXCEL_TEMP_DIR = 'mydir';
$PHPEXCEL_USER_ENCODING = 'Windows-1251';