Setup Zen-cart for non-English Language
Within the last couple of days, I have been stressfully tried to upgrade Zencart shop with French language. I have backup the same data in the old database exactly, and move it to my workstation. I have installed French language pack for zen-cart, but it does not work. The special characters in French / other languages (i.e. é, à, ç and the like) was rendered differently (become ê, é, etc.).
At first, I thought the problem was on the database. Since I am not allowed to upload any new files to the server and I don’t want to create security risk by uploading phpmyadmin, so I used MySQL Administration tools to process the database. I have tried to use backup function and MySQL Migration tool but the characters on the web page is still faulty. I have also tried to change the collation and database type from “latin” to “utf8”, but again it did not work.
Finally, I just figured out that it has nothing to do with the database. I just have to change the CHARSET of the html page of the zencart, which can be modified from the language file (English.php, French.php, etc.). The strange characters was rendered differently because It was rendered using iso-8859-1 not UTF-8. The solution is to modify the following line “define(‘CHARSET’, ‘iso-8859-1′);” into “define(‘CHARSET’, ‘utf-8′);”.
Tags: french, international language zencart, special character, utf8, zencart
















February 6th, 2009 at 2:23 am
thanks a lot!!!
this was exactlz mz problem and didn’t find help in the forums!
woohoo
March 2nd, 2009 at 7:01 pm
Perfect. You save my day dude!
March 19th, 2010 at 7:08 am
big big big thank you
August 4th, 2010 at 3:45 am
dear,
can you tell me please what pages french.php, english.php AND….
cause It did not work if i change only english and french.php
regards
elaine
August 7th, 2010 at 7:14 am
They are called language files in Zencart. If you use other language as well please change them. Otherwise, you have different case which can’t be solved with this solution.
September 25th, 2011 at 11:31 am
I changed the CHARSET to UTF-8 , but some special characters can’t work well
see my website