[fixed] Bulgarian-utf8 support is broken [fixed] Bulgarian-utf8 support is broken
 

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

[fixed] Bulgarian-utf8 support is broken

Started by Breach, August 21, 2004, 11:54:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Breach

Tried 4 browsers no avail - the bulgarian utf8 support appears as gibberish..

Joachim Müller

edit it with a text editor and see if it contains strange characters like
Quoteï"¿
at the very start, right before<?phpIf they are there, delete them.

GauGau

Breach

Done :) The end result is still gibberish... :(

Joachim Müller


Breach

http://photos.ivanchev.org/

Default is english-utf8, select language is available.

Joachim Müller


Breach

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)...

Joachim Müller

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

Breach

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.

Joachim Müller

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

Breach

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 ;-)