Old problem?Big5,Japanese in UNICODE Old problem?Big5,Japanese in UNICODE
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Old problem?Big5,Japanese in UNICODE

Started by jokera, December 01, 2005, 06:08:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jokera

I use 1.3.5,1.4xbeta,1.4.2,all has the same problem.
When I use IE to see http://coppermine-gallery.net/demo/cpg14x/displayimage.php?album=random&cat=0&pos=-61&lang=chinese_big5
It's OK,the charset is UTF-8
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fjokera.mrs3.com%2Fpg%2Falbums%2Fuserpics%2F10001%2FCPG001.jpg&hash=7094ae1156c22b6f4757138887a6135a7a593939)
But, when I click the picture to see the original size photo,here comes the problem..
It doesn't set the charset to UTF-8
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fjokera.mrs3.com%2Fpg%2Falbums%2Fuserpics%2F10001%2FCPG002.jpg&hash=901c81bbaea68ccae9f168e281a836d12dc498a3)

I have to modify template.html of all themes that set title before set charset like
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fjokera.mrs3.com%2Fpg%2Falbums%2Fuserpics%2F10001%2FCPG003.jpg&hash=8c7db386668383b948fd0610c55a4135f3d1e9c9)
change to
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fjokera.mrs3.com%2Fpg%2Falbums%2Fuserpics%2F10001%2FCPG004.jpg&hash=92676550eb48e88bfbe1fd3350aeca2cf94433e0)

the same problem is in picEditor.php too(because it doesn't have set charset?!)

donnoman

I've updated themes.inc.php and all of the core template.html files to make sure title is set AFTER charset.

I've also brought picEditor.php up to XHTML compliance, and set it's charset.

Jokera, can you grab the latest files from stable cvs and confirm they work properly?

I will make the same changes to devel.

jokera

Quote from: donnoman on December 04, 2005, 04:27:41 AM
I've updated themes.inc.php and all of the core template.html files to make sure title is set AFTER charset.
I've also brought picEditor.php up to XHTML compliance, and set it's charset.
Jokera, can you grab the latest files from stable cvs and confirm they work properly?
I will make the same changes to devel.
I get the latest file from
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/coppermine co -P stable
I modify themes.inc.php and all template.html for charset problem,and modify picEditor.php for charset not set.
There seems no problem in minibrowser.php and stat_details.php ,but I also modify them.  :-*
You can try it at http://jokera.mrs3.com/stable/index.php

donnoman

What EXACTLY did you modify of those files, they should have already been good.

Or I don't understand what you are actually changing in the files.

jokera

Oh..When I grab files from cvs ,time is early than my post 1~2 hours,these files are NOT CHANGED YET.
I don't know why the files are NOT CHANGED.
So,It's OK now,I sure the files get from cvs is newer version.  ;D

donnoman

there is a lag time between when devs make commits, before they are available via anonymous cvs.