Zen Cart Logo
Forums / Addon Language Packs / Garbled letters

Garbled letters

Locked

Views: 2,843

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
26 Jan 2010, 8:29 PM
#1
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

Garbled letters

I have set up a test customer with non-english characters in his name. In phpmyadmin, the zc db collation is set to ‘utf8_general_ci’. However, I still see the customer’s name both in phpmyadmin and zc garbled. As recommended in crystalKoi’s tutorial (http://www.srw2d.com/content/utf-8-zen-cart) , I changed the charset to utf-8 in english.php files both in admin-includes-languages and includes-languages folders. I also changed the code in the query_factory file but the accented letters still look distorted. Am I doing something wrong or is there any other way of rectifying this problem?

Cheers

1 Feb 2010, 4:35 PM
#2
mattymatt avatar

mattymatt

Zen Follower

Join Date:
Dec 2009
Location:
Pinner
Posts:
234
Plugin Contributions:
1

Re: Garbled letters

When you view the source of your index page what do you see as the character set ?

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

is the default which could then mis-render items in UTF-8 also updating your website, your browser probably posts in UTF-8, I know I've had problems with the £ sign before and that's pretty basic.

1 Feb 2010, 6:10 PM
#3
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

Re: Garbled letters

I solved the problem. Actually, what I should have done was uninstall zc, create the db with the correct collation and then reinstall it. Well, before uninstalling zc, I changed the collation of the db but that didn't work well in every page so creating everything from scratch seemed to be only option. Do you know the difference between "utf8_general_ci" and utf8_unicode_ci"? Are they both the same or differ in some aspects to a certain extent?

1 Feb 2010, 7:25 PM
#5
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

Re: Garbled letters

Thanks for the hand :smile: