Zen Cart Logo
Forums / General Questions / Production Option Value - Other language

Production Option Value - Other language

Views: 544

Results 1 to 8 of 8
6 Apr 2013, 3:59 AM
#1
cocolala avatar

cocolala

New Zenner

Join Date:
Jan 2010
Posts:
31
Plugin Contributions:
0

Production Option Value - Other language

I set up product attribute in Chinese Language, and it can be viewed well on my website as well as in the order confirmation i received via email. However, it is shown as codes in zencart admin. When I go to phpmyadmin under production option value, they are shown as codes as well.

The order confirmation that i received via email was displayed in codes when it was in plain text. I have successfully changed it to HTML email and now they are displaying the right words.

What is wrong with the admin setting? The guy who set up my website said he can do nothing.

Please help.

6 Apr 2013, 4:11 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Production Option Value - Other language

First of all if you are actually running ZenCart v138a You need to upgrade NOW
Do this on your schedule versus getting hacked and having to perform a clean and an upgrade

When I go to phpmyadmin under production option value, they are shown as codes as well.
What do you mean by "production"??
What language is set in your language.php file??

// look in your $PATH_LOCALE/locale directory for available locales..
  @setlocale(LC_TIME, 'en_US');
6 Apr 2013, 4:22 AM
#3
cocolala avatar

cocolala

New Zenner

Join Date:
Jan 2010
Posts:
31
Plugin Contributions:
0

Re: Production Option Value - Other language

Sorry I mean product option value!
Language is English and Chinese.

Ps: I can't find where to edit my post...

6 Apr 2013, 1:07 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Production Option Value - Other language

What language is set in your chinese.php language file??

6 Apr 2013, 2:03 PM
#5
cocolala avatar

cocolala

New Zenner

Join Date:
Jan 2010
Posts:
31
Plugin Contributions:
0

Re: Production Option Value - Other language

May I know how to check it? Sorry i'm not really familiar with php...
anyway i found this info from the chinese.php:

Global entries for the <html> tag
define('HTML_PARAMS','dir="ltr" lang="zh"');

// charset for web pages and emails
define('CHARSET', 'GB2312')

6 Apr 2013, 6:04 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Production Option Value - Other language

In your chinese.php file locate this code and what do you have for it?

// look in your $PATH_LOCALE/locale directory for available locales..
  @setlocale(LC_TIME, 'en_US');

What is in red might need changing to 'GBK'
See this article
http://en.wikipedia.org/wiki/GB_2312

Not positive but what you have for

// charset for web pages and emails
define('CHARSET', 'GB2312') 

Might need another charset designation??

See this article
http://www.herongyang.com/PHP-Chinese/charset-Chinese-Character-Set-Encoding-Options.html

7 Apr 2013, 5:03 AM
#7
cocolala avatar

cocolala

New Zenner

Join Date:
Jan 2010
Posts:
31
Plugin Contributions:
0

Re: Production Option Value - Other language

setlocale(LC_TIME, 'zh_CN.GB2312')

I tried changing charset to GB18030, then both locale and charset to GB18030 but still the same...

The weird thing is it displays correctly on my website and order via email, but in codes in the shopping cart and order under admin.

Attachment 12317
Attachment 12318

7 Apr 2013, 8:17 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Production Option Value - Other language

You might check with your host and ask if they have Chinese language supported