Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 1.5.x / V137 to V154 Lost Chinese Input in Admin CP after upgrading

V137 to V154 Lost Chinese Input in Admin CP after upgrading

21 May 2015, 7:18 AM
#1
haostaff avatar

haostaff

Zen Follower

Join Date:
Oct 2007
Location:
Hong Kong
Posts:
112
Plugin Contributions:
0

Post #1 by haostaff

This other thread is related, but resolved: https://www.zen-cart.com/showthread.php?217301-Chinese-Language-from-Database-Garbled-after-upgrading-from-v137

That was about the output from the database. But now input issue. The Chinese product title, description boxes are blank (if edit an existing product). After inputting, it does not save at all, or saves with garbled characters.

When copying from existing product, the Chinese content does not get copied over.

Downloaded the Chinese language pack for 1.5.4, same issue.

Searched up forum but don't understand most of the discussions. What are the simple but important steps to take and things to do? For a hardworking layman like me, please. Thanks!

Jeff

22 May 2015, 6:03 AM
#2
haostaff avatar

haostaff

Zen Follower

Join Date:
Oct 2007
Location:
Hong Kong
Posts:
112
Plugin Contributions:
0

Post #2 by haostaff

Have tried many things. Still have not solved the problem. I even used the existing 1.5.4 English language pack, renamed the english.php to schinese.php, and renamed the folder to languages/schinese and amended the

define('HTML_PARAMS','dir="ltr" lang="zh"');
define('CHARSET', 'GB2312');

So the Admin area, if chosen Chinese, is correctly showing the category, product descriptions, etc. But when trying to edit any category or product, it simply does not show the existing records from the database. The title and description boxes are all blank (not retrieving the existing data).

But one can create new category and products. The newly created record is displaying correctly and can be called up for editing, and can be saved properly.

Can all these test results point to a certain fix? Or at least point to a certain direction to investigate?

Thank,
Jeff

22 May 2015, 6:30 AM
#3
haostaff avatar

haostaff

Zen Follower

Join Date:
Oct 2007
Location:
Hong Kong
Posts:
112
Plugin Contributions:
0

Post #3 by haostaff

Meanwhile, more clue. The Admin -> Tools -> Define pages does not work for Chinese Admin, no matter if the file is in /html_includes/ or /html/includes/classic. It works for English Admin.

However, when in Chinese Admin, it works for only define_page_2/3/4.php, but not all the other pages the I created, which really matter.

22 May 2015, 10:00 AM
#4
haostaff avatar

haostaff

Zen Follower

Join Date:
Oct 2007
Location:
Hong Kong
Posts:
112
Plugin Contributions:
0

Post #4 by haostaff

After more tests, I am 100% sure that problem is the "traditional Chinese characters" are somehow no longer tolerated by the Admin CP now. This applies to category, products, descriptions, define_pages editor, and I suspect every data item that is multi-lingual. If the text saved or retrieved involves one traditional Chinese character, it returns blanks. If the text is all simplified Chinese characters, it can be saved and retrieved without any problem.

For those who don't know, it is the about 30% Traditional characters that make Tradition Chinese traditional. The other 70% characters are shared with Simplified Chinese.

What puzzles me was that this problem did not exist before I upgraded. I used the same GB2312 encoding in the schinese.php, and was able to save traditional Chinese characters, and pull them out for editing. That's the reason my site was a "Traditional Chinese site". But now I am stuck. It would be a shame and joke if now I can only publish products using Simplified Chinese, and people will see Mixed Chinese on my site.

Is there anyway to get around this, and make the Admin CP work normally with Traditional Chinese characters, just as before upgrading (well, I am not sure whether upgrading was to be blamed for this or not).

I have experimented with changing GB2312 to Big5, UTF8, and changing "zh_CN" to "zh_HK", etc. and none of that worked as hoped.

22 May 2015, 10:51 AM
#5
haostaff avatar

haostaff

Zen Follower

Join Date:
Oct 2007
Location:
Hong Kong
Posts:
112
Plugin Contributions:
0

Post #5 by haostaff

In summary, I think the database encoding (converted to utf8_general_ci) is fine, and it works with the GB2312 in displaying the characters (including the Traditional Chinese characters) on the website as well as in the Admin CP. The only issue is, the Traditional characters are blocking the retrieving and saving functions in the Chinese Admin CP.

Help please!

Jeff