Hello,
Thanks for the app. It's great.
Except one thing: i can't get it to read and encode greek characters properly.
Is there any thing special to do to get it to work?
I tried to use this: $data->setOutputEncoding('iso-8859-7'); But it didn't work.
Thanks in advance,
Yannick
Example of Spreadsheet with Greek Characters
Logged In: YES
user_id=1933631
Originator: NO
Hi
Does anyone have an idea about this?
Thanks,
Yannick
Logged In: YES
user_id=1974626
Originator: NO
Hi Yannick
I tried to read your Book3.xls using the PHP-ExcelReader, but I didn't see any error? Here is my code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7">
</head>
<body>
<?php
require 'reader.php';
$data = new Spreadsheet_Excel_Reader();
$data->setOutputEncoding('iso-8859-7');
$data->read('Book3.xls');
for ($i = 1; $i <= $data->sheets[0]['numRows']; $i++) {
for ($j = 1; $j <= $data->sheets[0]['numCols']; $j++) {
echo "\"".$data->sheets[0]['cells'][$i][$j]."\",";
}
echo "\n";
}
?>
</body>
</html>
On the screen I saw the Greek characters alright.
I came across your post hoping to solve my own problem reading Danish glyphs æøå when I wanted the output to be UTF-8 encoded. All I got was Unicode replacement characters (look like square boxes).
Could your issue possibly have anything to do with your PHP configuration. Perhaps you are lacking either the iconv extensions or mb_string extension? I'm not sure, though. I have both extensions installed in PHP.