forum.coppermine-gallery.net
Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: andrez1 on November 25, 2005, 02:45:21 am
-
Hello.
Installed cpg142 from fresh zip and use of Norwegian language file produce strange caracters.
If I open the norwegian.php in an editor (textpad 4.5 for windows) the file turns up as 'PC, UTF-8'
If i save that file whith 'ANSI' encoding everything is fine. It then turn up as 'PC, ANSI'.
I guess that is the solution, but not sure on UTF-8 - stuff.
Mvh Andrez1
-
my guess is that you haven't set your browser correctly, you have to enable unicode (utf-8) or automatic selection. Hard to say without a link to your page. However, modifying the language file as you did might be a solution for you. Does the demo (http://coppermine-gallery.net/demo/cpg14x/index.php?lang=norwegian) look as expected for you?
-
my guess is that you haven't set your browser correctly, you have to enable unicode (utf-8) or automatic selection. Hard to say without a link to your page. However, modifying the language file as you did might be a solution for you. Does the demo (http://coppermine-gallery.net/demo/cpg14x/index.php?lang=norwegian) look as expected for you?
Demo is OK. very nice.
I also tested with opera 8.0 and Internet explorer 6.20, (on local install with danish and norwegian language files) is the solution to get a new/updated browser or? Any setting to try?
Mvh Andrez1
-
what's you charset setting in your browser?
-
my guess is that you haven't set your browser correctly, you have to enable unicode (utf-8) or automatic selection. Hard to say without a link to your page. However, modifying the language file as you did might be a solution for you. Does the demo (http://coppermine-gallery.net/demo/cpg14x/index.php?lang=norwegian) look as expected for you?
I try again.
Your norwegian demo-page display OK in Opera 8.0 and encoding set to 'automatic selection'.
Your norwegian demo-page display OK in IE6.20 and encoding set to 'automatic selection'.
But not on similar pages served from local machine.
What is different is web-server. I belive this is not a browser issue.
I guess I have to look at server settings in apache and php on the local server.
I get "<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />" on both local and your demo-pages.
I guess the browser gets information from web-server about content encoding, not only by reading html-page. If it only was by reading html-pages; it would not be an issue as the pages are identical.
Pages displayed with error in encoding - saved to disk - opened again - display OK.
coppermine from 1.32 - 1.35 have behaved very well on language, served from apache-php-mysql package Xampp
http://www.apachefriends.org/ windows -version.
1.4 have never worked properly on (norwegian) language and the xampp package. So this is maybe a windows-apache-php problem.
what's you charset setting in your browser?
Automatic on both.
Mvh Andrez1
-
We already fixed this error, looks like it got lost somewhere along the line.
include/themes.inc.php
find
header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
user_save_profile();
change to
$charset = ($CONFIG['charset'] == 'language file') ? $lang_charset : $CONFIG['charset'];
header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
header("Content-Type: text/html; charset=$charset");
user_save_profile();
-
header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
user_save_profile();
change to
$charset = ($CONFIG['charset'] == 'language file') ? $lang_charset : $CONFIG['charset'];
header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
header("Content-Type: text/html; charset=$charset");
user_save_profile();
Much better. It now display norwegian characters automatically.
But I am stuck with them, can not change back to english or other language... If I go to configuration, I can not change language..
Mvh Andrez1
-
Clear your cookies. Marking as fixed.
-
Clear your cookies. Marking as fixed.
Done that. On both browsers.
Going to configuration menu to change language does not help, when updating; language does not change.
But going to the same menu allowing language list; update; go language list in main page and changing that; works.
So i think the fix produced another problem.
Mvh Andrez1
-
Going to configuration menu to change language does not help, when updating; language does not change.
But going to the same menu allowing language list; update; go language list in main page and changing that; works.
So i think the fix produced another problem.
Mvh Andrez1
Andrez,
Try logging out. Leave your site, clear your cookies and then return to your site, log back in, and set the default language. It happened to me once before, but this cleared it up.
Dennis
-
Tahnk you for this "hack" it run for me :)
-
It doesn't work for me. It's in french and all "é" and "è" are shown as "?" and "�"
I've used this hack, but still no change. When running charsetmgr no change either.
Any idea?
PS. there's also a similar thread in the French board
-
@lontano: link?
-
@Lontano
What is your setting for "Character encoding" in Config? That should remain at the recommended UTF8 setting.
Dennis
-
@lontano: link?
sorry... forgot it...
www.daviderenda.com
user: test
password: password
-
@Lontano
What is your setting for "Character encoding" in Config? That should remain at the recommended UTF8 setting.
Dennis
Left as UTF8. I've tried changing to local encoding, but no result either.
I've also checked settings on my Firefox and everything is set to UTF8 too
-
Going to configuration menu to change language does not help, when updating; language does not change.
But going to the same menu allowing language list; update; go language list in main page and changing that; works.
So i think the fix produced another problem.
Mvh Andrez1
Andrez,
Try logging out. Leave your site, clear your cookies and then return to your site, log back in, and set the default language. It happened to me once before, but this cleared it up.
Dennis
Hello
I'v been clearing a lot of cokies since last..
I now belive the problem have two parts.
Whatever can be set and stored i cokies as language preference based on list-box on frontside: Works OK. With or without nibblers fix.
But changing, as admin, in 'configuration'-menu, language: Does not work. Broken with nibblers fix. (A fix which works ok on how utf-8 is displayed.)
The place to check if the 'cpg140_config' -table change the 'name' "lang" to 'value' "english" (or whatever chosen) or not when requested.
I would like to set language to norwegian and remove listbox and language-flags on frontpage. And i can not do that from config meny as long as the database not gets the message 'name' "lang" to 'value' "norwegian"
I can edit the database, thats so...
Mvh Andrez1
-
I made the changes, but not every caracter is displayed correcly. The ë is displayed correcly, but é is not! language dutch and utf-8
-
We already fixed this error, looks like it got lost somewhere along the line.
include/themes.inc.php
find
header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
user_save_profile();
change to
$charset = ($CONFIG['charset'] == 'language file') ? $lang_charset : $CONFIG['charset'];
header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
header("Content-Type: text/html; charset=$charset");
user_save_profile();
Hi,
I've made the changes but it doesn't works! I've checked it with Firefox 1.0 and IE 6.0. Cpg 1.3.5, insted, works ok.
-
I've tried even with Firefox 1.5 but I stall have problems with à è ì ò ù, displayed as ù
Please help me
-
this is the bugs board, there's no support here. Don't expect help that soon, we're working on this issue. If you need help and want to fix this faster, post details like a link to your site, a hardcopy of the language section of coppermine's config, a hardcopy of your browser's charset/encoding settings.
-
Hi GauGau, you can access my test gallery at http://area51.zenigata.it/cpg142/cpg142/index.php
I have errors with language Italiano and Italiano2 and Firefox is set to western charset encoding (ISO8859-1).
You can also access my production gallery (with no errors and italiano language file) at: http://forum.zenigata.it/galleria/index.php
I hope you will find a solution to this bug.
Good work. :)
-
Same thing here... plus other problems...
http://www.gospel.bo.it/ (http://www.gospel.bo.it/) ;)
-
I've tried even with Firefox 1.5 but I stall have problems with à è ì ò ù, displayed as ù
Hi GauGau, you can access my test gallery at http://area51.zenigata.it/cpg142/cpg142/index.php
I have errors with language Italiano and Italiano2 and Firefox is set to western charset encoding (ISO8859-1).
Dont know firefox, but can you set it to automatic on encoding?
I have visited your test-site. It display Norwegian perfect. But your Italian is crappy ;)
Automatic encoding in browser.
When i open the norwegian.php in an text-editor (textpad 4.5.0 abel to se what encoding, and to save in that encoding) it opens as
'PC, utf-8'. What i se is straigtforward readable norwegian.
When i open the italian.php in an text-editor (textpad 4.5.0 abel to se what encoding, and to save in that encoding) it opens as
'PC, utf-8'. What i se is messed up italian. A lot of Ã.
When i open the italian2.php in an text-editor (textpad 4.5.0 abel to se what encoding, and to save in that encoding) it opens as
'PC, utf-8'. What i se is messed up italian. A lot of Ã.
Maybe there exist a italian language file which can be saved properly... If not:
I guess the manual solution is to have someone familiar with italian to open the two language files in an editor as the one mentioned, and look for the next Ã, change it, and be sure to save the file as utf-8 on exit.
The 'Ã' often come as an 'è' or 'é' , some variants. Do a search and repalce on the different variant, be sure all 'Ã' you dont want is translated.
Mvh Andrez1
-
Sitting here with my Swedish.php and anycontent.php and it wont work for me.. the fix wont work. i've tester all files forwards and backwards many times now. changed encoding to utf-8 and back to iso-8859-1. i've cleared the cookies.. tried in Firefox and Internet explorer... nothing works.... really sad. i really want to fix this!
i have realised that the version 1.3.5 works perfect with swedish and anycontent... but in the 1.4.2 i just get a lots of "??" everywhere...
i've posted my problems here anyway: http://forum.coppermine-gallery.net/index.php?topic=25296.0
//Joachim
Edit: YES!! It's working now.. :)
-
Posted by: TuXi
Insert Quote
Sitting here with my Swedish.php and anycontent.php and it wont work for me.. the fix wont work. i've tester all files forwards and backwards many times now. changed encoding to utf-8 and back to iso-8859-1. i've cleared the cookies.. tried in Firefox and Internet explorer... nothing works.... really sad. i really want to fix this!
i have realised that the version 1.3.5 works perfect with swedish and anycontent... but in the 1.4.2 i just get a lots of "??" everywhere...
i've posted my problems here anyway: http://forum.coppermine-gallery.net/index.php?topic=25296.0
//Joachim
Edit: YES!! It's working now..
TuXi - what did you do? I have gotten most of the gallery to show the correct charcters in Swedish but still have problems with them in Catagories.
MVH
Ami
-
This is not a support thread. Locking!