I have a weird issue about encoding, special characters aren't displaying the right way (€, £, etc).
Lang files still have UTF-8 as setting, but the actual page is served as ISO-8859-1. I see it when selecting page properties in Firefox. The browser chooses iso and specials characters are messed up. This happens in both the front end and admin.
The weird thing is that I didn't touched any of the files before so the problem must be somewhere else...
I'm going to go over ever page and page it to utf8. I just need to read up on dreamwewver on how to do this.nde wrote: I have a weird issue about encoding, special characters aren't displaying the right way (€, £, etc).
Lang files still have UTF-8 as setting, but the actual page is served as ISO-8859-1. I see it when selecting page properties in Firefox. The browser chooses iso and specials characters are messed up. This happens in both the front end and admin.
The weird thing is that I didn't touched any of the files before so the problem must be somewhere else...
OpenCart®
Project Owner & Developer.
Thanks! I already checked some important files myself, but all are in utf-8. Though some in Unix and some in DOS format. Could it be that's an CR/LF issue?
The $ is displaying alright, € converts to '€', and pound sterling to '£'
Also, special chars I type in the admin aren't saved to the database the right way, e.g. an ü always returns an ? after safe.
Browsing though the forum I saw that other people have problems with codepage too...
The weird thing is that the page just renders the right way on my localhost (utf-8), but after uploading the same files to my server they mess up the chars and the page gets served as iso-8859-1.
I use WAMP5 on Vista with all recommended settings, but for my paid host I need to declare 'register globals off' in my .htaccess. Could it be that this is the root of the error?
The $ is displaying alright, € converts to '€', and pound sterling to '£'
Also, special chars I type in the admin aren't saved to the database the right way, e.g. an ü always returns an ? after safe.
Browsing though the forum I saw that other people have problems with codepage too...
The weird thing is that the page just renders the right way on my localhost (utf-8), but after uploading the same files to my server they mess up the chars and the page gets served as iso-8859-1.
I use WAMP5 on Vista with all recommended settings, but for my paid host I need to declare 'register globals off' in my .htaccess. Could it be that this is the root of the error?
I just tried hardcoding the codepage into the main index.php:
This works for me, all special chars display correctly and the page gets served as utf-8 like specified. I think my host has PHP set to serve pages as iso-8859-1 and you can override it with the Content-Type statement. I will confirm this with them. Maybe you want to add something like below to the index.php and the admins index.php instead of the way you do it now?
Code: Select all
header('Content-Type: text/html; charset=utf-8');
Code: Select all
header('Content-Type: text/html; charset=' . $language->get('charset'));
Thanks for your help but I'm not very familar with that. Where exactly should I do these changes?
Thanks again :-)
Thanks again :-)
Who is online
Users browsing this forum: Amazon [Bot] and 28 guests