SMF 1.1.1 with CPG 1.4.10 Unicode code are shown up instead of actual characters SMF 1.1.1 with CPG 1.4.10 Unicode code are shown up instead of actual characters
 

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

SMF 1.1.1 with CPG 1.4.10 Unicode code are shown up instead of actual characters

Started by wjhjoomla, January 28, 2007, 05:28:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wjhjoomla

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.

wjhjoomla

Link: [removed as requested]
Quote from: 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.


wjhjoomla

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]

Quote from: Nibbler on January 28, 2007, 05:36:46 PM
Is this caused by the bridge?

Nibbler

I see. Try this quick code change to bridge/smf10.inc.php

find


                $this->connect($db_connection);


change to


                $this->connect($db_connection);
                cpg_db_query("SET NAMES DEFAULT", $this->link_id);

wjhjoomla

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.

wjhjoomla

Also, will you kindly help me to remove the links I put in early?

Thanks.