Unicode Problem for Uploading Items

leverii

Joined: 2004-11-25
Posts: 23
Posted: Tue, 2005-01-25 06:05

My Chinese users tell me that G2 is working fine for inputting Chinese characters. No matter Traditional or Simplified Chinese is input, they can be displayed properly in the same page.

However, the Chinese characters are not properly converted to Unicode during upload. For example, if there is Traditional Chinese description in the "image description field" of a jpg file, the description shown on the item after upload is encoded as Big5 NOT Unicode. Without resetting the browser to Big5, the description will be shown as a mess.

As G2 keep using Unicode (UTF-8) anywhere, could it be a good idea converting the description to Unicode during upload?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2005-01-26 20:26

The problem is that we don't know the characterset of the data that's embedded in the JPG. We tell the browser to send us UTF8 (which it does). Is there a way to find out the characterset of the EXIF data?

 
mactable

Joined: 2005-01-24
Posts: 34
Posted: Wed, 2005-01-26 20:58

i am also facing chinese file name problem.
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=25489&sid=6674c41634a87b7f894bc128f7ad3019

can anyone confirm it is gallery remote problem? or caused by G2 remote module?

thx

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Fri, 2005-01-28 15:16

Hmm. Well, if we had a selector for exif data charset (even a manual and/or default one that the user could pick) would could use the conversion tools (iconv, recode, mb_string) to show the correct data.

Would filenames be harder? Are Chinese characters legal in urls?

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Fri, 2005-01-28 15:25

Ah, looking at the other post, I see that filenames are only a gallery remote issue.