Turkish character problem with SMF bridge Turkish character problem with SMF bridge
 

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

Turkish character problem with SMF bridge

Started by darkeagle, October 18, 2010, 03:02:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

darkeagle

Hi,
I installed CPG 1.5.8 and bridged to SMF2RC

Everything is working fine but I have charactar problem at only usernames.

For example: Maça Papazı shown like Ma�a Papaz?

My cgp link is: http://www.hatayfotograf.com/galeri/
All databases is set to utf8.

Thanks for your helps,
Regards...

darkeagle

And I noticed cpg is changing characters to sql.
For example: -yürüyüş- instead of -yürüyüş-
In coppermine, it isn't so important but when I made block for main page of my site, characters not shown correct.
Is there any converter system to ascii in cpg?
If so, can I cancel it?

Αndré

Afaik there's no converter. Coppermine just uses the user table of the third party application (SMF in your case). Seems to be an encoding issue imo, but I've currently too little time to check that in a test environment.

darkeagle

Sorry for poor information.
In second example, this is title or description of photograph.

At SMF, there is not problem. If I write -yürüyüş-, it will be saved as -yürüyüş- to database.
But at CPG, it has been saving as -yürüyüş-. (In cpg it shown correct but in block that I made shown as stored database)

For this reason, I thought CPG will encode to sql or decode from sql.
Because, in my SMF database, username saved as Maça Papazı correctly and Cpg seems convert this when read from sql.

Αndré

Where exactly do you enter/save usernames in Coppermine when you are bridged?

Please add the following line to galeri/include/config.inc.php:
$CONFIG['dbcharset'] = 'utf8';
and try again.

darkeagle

Whoa, it solved my problem perfectly,
Thank you very much :)