nicolas wrote: Hi,
You should not need to change any code. HikaShop already exports your data in UTF8 which handles almost all the existing characters of almost all the existing languages on earth.
The issue is more during the import process in Excel where you need to choose UTF8 when you open the file so that it displays the characters properly.
What you're doing with your code is to convert the UTF8 data into Windows-1252 which is a format which supports only a handful of specific characters and thus, for the characters it doesn't support, it puts a question mark instead.
OK, it should work like that, but chars áéíóöőúüű and same capitals ÁÉÍÓÖŐÚÜŰ exported for me by default not correct in both Excel and CSV. In case CSV I can solve it by adding "Add data from file" in Excel, in that case it's OK (I dont't know why). We wanna avoid that, to force our accountants to click 3-4-5 times more to import it correctly in Excel.
That's why I tried to do that encode. I know UTF8 should be OK for me, but when I set
echo mb_convert_encoding($this->buffer, 'Windows-1252');
is because this just misses the ő and ű, but
echo mb_convert_encoding($this->buffer, 'utf8');
is misses more chars.
Would you mind if I ask you to also try to make a test with chars ű and ő on your server somehow?
I also checked demo server's admin (demo.hikashop.com), exported the orders, and for example Rhône has also a special charachter, and it's not displayed correctly for me either, if I open it in Excel.