3 Attachment(s)
gibberish at homepage in Chinese
Could anyone help me,please?
Zencart v1.5.4 and installed chinese patch simplified utf8. I've imported v1.5.1 data and changed all web file Simplified Chinese text to traditional Chinese.
But I found there is gibberish at the homepage
i.e. New Product For "???"
Attachment 15605
and
Monthly Specials For "???"
Attachment 15606
I've changed all collation to utf8_generic_ci from default latin1_swedish_ci
Attachment 15607
And when installing v1.5.4, is it possible to change the default collation to utf8_generic_ci instead of latin1_swedish_ci? I cannot change it even I choose to default utf8 when installing.
Thank you very much in advance!
Re: zen v1.5.4 gibberish at homepage in Chinese
Quote:
I've imported v1.5.1 data and changed all web file Simplified Chinese text to traditional Chinese.
What do you mean by that?
Re: zen v1.5.4 gibberish at homepage in Chinese
Some of their characters are different. In my city, people use Traditional Chinese, so I have to change all Simplified Chinese characters to Traditional.
Re: zen v1.5.4 gibberish at homepage in Chinese
Are these ???? supposed to be month names?
Re: zen v1.5.4 gibberish at homepage in Chinese
Quote:
Originally Posted by
Thannaree
Are these ???? supposed to be month names?
Yes.
In English patch, it should be "New Products For September & "Monthly Specials For September". But the month name cannot be decoded properly in Chinese patch!
Re: zen v1.5.4 gibberish at homepage in Chinese
In files includes/languages/schinese.php and admin/includes/languages/schinese.php
Quote:
$locales = array('zh_CN', 'zh_CN.utf8', 'zh');
Could you try adding locales for traditional?
I am pulling these from Google:
Hong Kong: 'zh_HK', 'zh_HK.utf8',
Traditional: 'zh_HANT', 'zh_HANT.utf8',
Taiwan: 'zh_TW', 'zh_TW.utf8',
2 Attachment(s)
Re: zen v1.5.4 gibberish at homepage in Chinese
Quote:
Originally Posted by
Thannaree
In files includes/languages/schinese.php and admin/includes/languages/schinese.php
Could you try adding locales for traditional?
I am pulling these from Google:
Hong Kong: 'zh_HK', 'zh_HK.utf8',
Traditional: 'zh_HANT', 'zh_HANT.utf8',
Taiwan: 'zh_TW', 'zh_TW.utf8',
Thank you Thannaree! I'm in Hong Kong so I guess I should use zh_HK.
Here is the original code:
Code:
$locales = array('zh_CN', 'zh_CN.utf8', 'zh');
@setlocale(LC_TIME, $locales);
I changed to :
Code:
$locales = array('zh_HK', 'zh_HK.utf8', 'zh');
@setlocale(LC_TIME, $locales);
The gibberish still exists.
I'm not familiar with programming. I tried to remove the definition of $locales, i.e.
Code:
$locales = array('zh_HK', 'zh_HK.utf8', 'zh');
@setlocale(LC_TIME, 'zh_HK.utf8');
The month gibberish problem seems solved!
Homepage
Attachment 15611
Admin page
Attachment 15612
But I wonder it will drive other problems in somewhere, won't it?
Could you please also telling me whether I have to change all table collations to utf8_generic_ci in database?
Thank you!
Re: zen v1.5.4 gibberish at homepage in Chinese
Quote:
I changed to :
Code:
$locales = array('zh_HK', 'zh_HK.utf8', 'zh');
@setlocale(LC_TIME, $locales);
The gibberish still exists.
Have you also tried with
Code:
$locales = array('zh_HANT', 'zh_HANT.utf8', 'zh');
@setlocale(LC_TIME, $locales);
Re: zen v1.5.4 gibberish at homepage in Chinese
Quote:
And when installing v1.5.4, is it possible to change the default collation to utf8_generic_ci instead of latin1_swedish_ci? I cannot change it even I choose to default utf8 when installing.
How did you install it? I just did a fresh v1.54 install manually and UTF-8 is set by default in the drop down. And after installation collation is utf8_generic_ci.
Re: zen v1.5.4 gibberish at homepage in Chinese
Quote:
Originally Posted by
Thannaree
Have you also tried with
Code:
$locales = array('zh_HANT', 'zh_HANT.utf8', 'zh');
@setlocale(LC_TIME, $locales);
I've tried it and TW and HANS but the month "September" displayed in English instead of Chinese.
Could you give me advise if changing like this should be okay?
Code:
@setlocale(LC_TIME, 'zh_HK.utf8');