forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 bridging => Topic started by: darkeagle on October 18, 2010, 03:02:34 pm

Title: Turkish character problem with SMF bridge
Post by: darkeagle on October 18, 2010, 03:02:34 pm
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...
Title: Re: Turkish character problem with SMF bridge
Post by: darkeagle on October 18, 2010, 10:23:48 pm
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?
Title: Re: Turkish character problem with SMF bridge
Post by: Αndré on October 20, 2010, 03:06:17 pm
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.
Title: Re: Turkish character problem with SMF bridge
Post by: darkeagle on October 20, 2010, 04:36:18 pm
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.
Title: Re: Turkish character problem with SMF bridge
Post by: Αndré on October 20, 2010, 04:41:49 pm
Where exactly do you enter/save usernames in Coppermine when you are bridged?

Please add the following line to galeri/include/config.inc.php:
Code: [Select]
$CONFIG['dbcharset'] = 'utf8';and try again.
Title: Re: Turkish character problem with SMF bridge
Post by: darkeagle on October 20, 2010, 05:08:11 pm
Whoa, it solved my problem perfectly,
Thank you very much :)