Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Sep 2015
    Location
    Hong Kong
    Posts
    45
    Plugin Contributions
    0

    Default 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 "???"
    Click image for larger version. 

Name:	homepage01.jpg 
Views:	70 
Size:	75.3 KB 
ID:	15605

    and

    Monthly Specials For "???"
    Click image for larger version. 

Name:	homepage02.jpg 
Views:	64 
Size:	78.0 KB 
ID:	15606

    I've changed all collation to utf8_generic_ci from default latin1_swedish_ci
    Click image for larger version. 

Name:	homepage03.jpg 
Views:	60 
Size:	72.0 KB 
ID:	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!

  2. #2
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    309
    Plugin Contributions
    2

    Default Re: zen v1.5.4 gibberish at homepage in Chinese

    I've imported v1.5.1 data and changed all web file Simplified Chinese text to traditional Chinese.
    What do you mean by that?

  3. #3
    Join Date
    Sep 2015
    Location
    Hong Kong
    Posts
    45
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    309
    Plugin Contributions
    2

    Default Re: zen v1.5.4 gibberish at homepage in Chinese

    Are these ???? supposed to be month names?

  5. #5
    Join Date
    Sep 2015
    Location
    Hong Kong
    Posts
    45
    Plugin Contributions
    0

    Default Re: zen v1.5.4 gibberish at homepage in Chinese

    Quote Originally Posted by Thannaree View Post
    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!

  6. #6
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    309
    Plugin Contributions
    2

    Default Re: zen v1.5.4 gibberish at homepage in Chinese

    In files includes/languages/schinese.php and admin/includes/languages/schinese.php

    $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',

  7. #7
    Join Date
    Sep 2015
    Location
    Hong Kong
    Posts
    45
    Plugin Contributions
    0

    Default Re: zen v1.5.4 gibberish at homepage in Chinese

    Quote Originally Posted by Thannaree View Post
    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
    Click image for larger version. 

Name:	homepage04.jpg 
Views:	19 
Size:	54.4 KB 
ID:	15611

    Admin page
    Click image for larger version. 

Name:	homepage05.JPG 
Views:	18 
Size:	83.7 KB 
ID:	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!

  8. #8
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    309
    Plugin Contributions
    2

    Default Re: zen v1.5.4 gibberish at homepage in Chinese

    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);

  9. #9
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    309
    Plugin Contributions
    2

    Default Re: zen v1.5.4 gibberish at homepage in Chinese

    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.

  10. #10
    Join Date
    Sep 2015
    Location
    Hong Kong
    Posts
    45
    Plugin Contributions
    0

    Default Re: zen v1.5.4 gibberish at homepage in Chinese

    Quote Originally Posted by Thannaree View Post
    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');

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 5
    Last Post: 12 Dec 2013, 02:58 PM
  2. Newsletter Sending - Gibberish instead of green tick - screenshot provided
    By PatF in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 12 Apr 2011, 05:56 PM
  3. Gibberish email with links from unknown person
    By dealbyethan.com in forum General Questions
    Replies: 5
    Last Post: 23 Mar 2009, 04:27 PM
  4. is there a pack for BOTH Traditional Chinese and Simplified Chinese
    By paulFromWales in forum Addon Language Packs
    Replies: 0
    Last Post: 11 Mar 2007, 02:57 PM
  5. Footer-gibberish
    By Tig in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 1 Aug 2006, 08:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR