forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: wjhjoomla on January 28, 2007, 05:28:12 pm

Title: SMF 1.1.1 with CPG 1.4.10 Unicode code are shown up instead of actual characters
Post by: wjhjoomla on January 28, 2007, 05:28:12 pm
I used the bridge to connect SMF 1.1.1 with CPG 1.4.10. Category name:

"舞会相册“ is shown as "θˆžδΌšη›Έε†Œ" which is what exactly in DB as utf-8 code. Will someone tell me what went wrong?

Thank you in advance.
Title: Re: SMF 1.1.1 with CPG 1.4.10 Unicode code are shown up instead of actual charac
Post by: wjhjoomla on January 28, 2007, 05:31:00 pm
Link: [removed as requested]
I used the bridge to connect SMF 1.1.1 with CPG 1.4.10. Category name:

"舞会相册“ is shown as "θˆžδΌšη›Έε†Œ" which is what exactly in DB as utf-8 code. Will someone tell me what went wrong?

Thank you in advance.
Title: Re: SMF 1.1.1 with CPG 1.4.10 Unicode code are shown up instead of actual characters
Post by: Nibbler on January 28, 2007, 05:36:46 pm
Is this caused by the bridge?
Title: Re: SMF 1.1.1 with CPG 1.4.10 Unicode code are shown up instead of actual charac
Post by: wjhjoomla on January 28, 2007, 08:24:24 pm
Here is the situation:

Once enable the bridge it changes to the mess code and it turns back to the character once disable the bridge.
Any other info you need to tell the cause of the problem?

Thank you.

P.S. This is what should look, after I disable the bridge.

[removed as requested]

Is this caused by the bridge?
Title: Re: SMF 1.1.1 with CPG 1.4.10 Unicode code are shown up instead of actual characters
Post by: Nibbler on January 28, 2007, 08:38:59 pm
I see. Try this quick code change to bridge/smf10.inc.php

find

Code: [Select]
                $this->connect($db_connection);

change to

Code: [Select]
                $this->connect($db_connection);
                cpg_db_query("SET NAMES DEFAULT", $this->link_id);
Title: Re: SMF 1.1.1 with CPG 1.4.10 Unicode code are shown up instead of actual charac
Post by: wjhjoomla on January 28, 2007, 08:49:55 pm
Unbelievable! It is all set and wish someone post this correction as I've found many people having the same problem.

Thank you very much.
Title: Re: SMF 1.1.1 with CPG 1.4.10 Unicode code are shown up instead of actual charac
Post by: wjhjoomla on January 28, 2007, 08:53:58 pm
Also, will you kindly help me to remove the links I put in early?

Thanks.