iliaal/php_excel — Issue #22: Problem encoding
Author: oxman
Created: 2011-12-20 09:13:13+00:00
State: open

I try to write cell with accent, but my cells remain empty.

$str = "école";
$s->write(5, 5, $str);
$str = utf8_encode("école");
$s->write(5, 6, $str);
$str = utf8_decode("école");
$s->write(5, 7, $str);
$str = iconv('UTF-8', 'ASCII//TRANSLIT', 'école');
$s->write(5, 8, $str);
$str = iconv('UTF-8', 'Windows-1252//TRANSLIT', 'école');
$s->write(5, 9, $str);

Every cells are empty except the 5,8 which contain '?cole'

$x->setLocale('.1252');
$s = $x->addSheet("Sheet 1");
$str = "école";
$s->write(5, 5, $str);
$str = utf8_encode("école");
$s->write(5, 6, $str);
$str = utf8_decode("école");
$s->write(5, 7, $str);
$str = iconv('UTF-8', 'ASCII//TRANSLIT', 'école');
$s->write(5, 8, $str);
$str = iconv('UTF-8', 'Windows-1252//TRANSLIT', 'école');
$s->write(5, 9, $str);

Same thing with this case.
version : iliaal-php_excel-37e0730