Does CPG support Chinese comments? Does CPG support Chinese comments?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Does CPG support Chinese comments?

Started by jsmacdougall, September 23, 2005, 01:19:02 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

jsmacdougall

Background:
I have setup CPG on my computer in Waterloo, Canada.
I have friends and family that live in China, and they would like to enter a comments in Chinese simplified (中文 - 简体) to our Photos.

On the album descriptions, I was able this for example: Panjin 盘锦 and it was displayed correctly. I thought that the Chinese entries in comments should also display correctly also.

Is it possible to enter Chinese Characters such as this for example: 女婴 in the comment section?

I have tried to enter 女婴 in the comment section but it displayed only (...)

Can anyone help me with this issue? If you require access to my website, I have provided the following information

http://www.fastcat-technologies.ca/coppermine/index.php
username: Sojuman
password: qcyjty

artistsinhawaii

#1
jsmacdougall,

What happens when you change your language settings to Chinese? Do the comments still look like (...)?  I typed a comment in Japanese http://www.fastcat-technologies.ca/coppermine/displayimage.php?pos=-1868 and it displays properly only if I refresh my settings in IE by selecting  "Encoding/More/Japanese (EUC)" from IE's View menu.

I also noticed that I had to set my IE settings to the specific language before entering a comment in that language or it wouldn't save properly.

Did you set your language and Character Encoding settings to the appropriate Chinese selection in CONFIG and try it that way?

Hopefully, this will help some other dev to sort this out.


Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Joachim Müller

try using utf-8 as default encoding in coppermine's config. Not sure if this will cure all your problems.

artistsinhawaii

Quote from: GauGau on September 23, 2005, 06:51:06 AM
try using utf-8 as default encoding in coppermine's config. Not sure if this will cure all your problems.

GauGau,

I tried the default utf-8 settings in my own local setup (1.4x) and added a few comments in Japanese to some of my pictures. I could add them but they didn't display properly.  But, if I select Japanese (EUC) for character encoding and leave my language settings to English.  It displays just fine. 

East-Asian languages are 16-bit, or double-byte character sets, maybe there's an incompatibility between the UTF-8 unicode and Asian languages?

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Joachim Müller

this has changed significantly from cpg1.3.x to cpg1.4.x, so we will have to discuss this issue for cpg1.4.x installs separately.

jsmacdougall

Thanks for giving me some great ideas on this issue. I didn't have a chance to read your comments sooner; was hit with the flu last couple of days, and still recovering.  :-\\

My relatives in China will try to post some comments tomorrow to see if it works after the modifications that I have made.

Some Information: My main browser is Firefox (latest).
For Chinese support, I am testing the site on IE since (father-in-law) uses it in China.

This is what I have done that seems to work so far.

In Config,

Language: English (It seems dependant on the encoding is set on my Firefox, or IE)
Encoding: unicode (utf-8)

On IE, it looks garbled, until I select view menu->encoding->Chinese Simplified (GB2312). Then everything is perfect.
I can enter Chinese Text such as 我爱这食物。and it will save it correctly.

When the page is refreshed, the encoding keeps reverting back to Western European (ISO). I wonder it there is any around this short of using Windows XP (Chinese edition).

I'm making progress, and this is a good start.  :D

artistsinhawaii

#6
Quote from: jsmacdougall on September 25, 2005, 05:48:17 AM

In Config,

Language: English (It seems dependant on the encoding is set on my Firefox, or IE)
Encoding: unicode (utf-8)

When the page is refreshed, the encoding keeps reverting back to Western European (ISO). I wonder it there is any around this short of using Windows XP (Chinese edition).



In 1.34 are there other settings besides utf-8?  Utf-8 is the recommended settings for most users needs and should be left as such, but if there is a  "Chinese Simplified (euc on)" option, you may want to try that setting.    



Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.