PHPOffice / PHPExcel

ARCHIVED
Other
11.46k stars 4.19k forks source link

Problem reading Arabic characters from Excel2007 #1007

Open JefferyHus opened 8 years ago

JefferyHus commented 8 years ago

I am using this package inside Fuelphp things works just fine with the composer loader, the Fuelphp rendering configurations are fine also as you can control the output encoding, my proble is when I upload and read an ".xlsx" file that contains arabic characters, the words are not well encoded, e.g: وﻓﺎرة becomes وﻓﺎرة, I have tried to check the Http headers and everything seems to be good, I have tried the utf8_encoding() PHP function but nothing happens so I hope someone can help.

MarkBaker commented 8 years ago

PHPExcel should be converting all content that it reads from the file to UTF-8 as it reads it; there is no need to convert it to utf-8 again. Are you displaying it as UTF-8?

JefferyHus commented 8 years ago

Yes I display it as UTF-8, I read the file then I display the content inside my view.