Tried 4 browsers no avail - the bulgarian utf8 support appears as gibberish..
edit it with a text editor and see if it contains strange characters like
Quoteï"¿
at the very start, right before
<?php
If they are there, delete them.
GauGau
Done :) The end result is still gibberish... :(
link?
GauGau
http://photos.ivanchev.org/
Default is english-utf8, select language is available.
does http://photos.ivanchev.org/index.php?lang=bulgarian (windows-1251 charset) work for you?
GauGau
Yep! Though it does not select the browser-side encoding as windows-1251 initially... Unicode would be better though ;-) It's sort of perplexing how a default charset is selected in the first place - apache2.conf gives an option for a default (which I set to utf8), then there's browser ability to request a language via the GETs, and then there's a default encoding specified in the language files for Coppermine (windows-1251)...
try re-converting the windows charset file bulgarian-utf-8.php, using http://www.iconv.com/iconv.htm
You will have to edit the file and replace$lang_charset = 'windows-1251';
with$lang_charset = 'utf-8';
. Save it as bulgarian-utf-8.php. Please report if this worked for you.
GauGau
Done - Negative - I still get the same gibberish, so I'd reckon the converter goes wrong at some point... Did a WINDOWS-1251 -> UTF-8 and WINDOWS-1251 ->UTF8 (what's the difference?!) still the same result.
hrm, not sure what's wrong. As a workaround, paste the contents of bulgarian.php into bulgarian-utf-8.php and save it. This way, your bulgarian language file will not actually be utf-8, but the language selector on your page is suppossed to work then.
GauGau
Fixed!! :-) Oh joy! Thanks to the wonderful script at:
http://asuult.net/badaa/convert/con2uni.htm
I am also attaching the final version - Folks shall need to put it into their respective coppermine/lang dir rename it back to .php, and:
chown $apache_uid$:$apache_gid$ bulgarian-utf-8.php
chmod 666 bulgarian-utf-8.php
Ah, that was fun ;-)