Quote:
Originally Posted by bepe
Quote:
Originally Posted by HoSStiA
PHP Code:
@mysql_query('SET NAMES utf8');
|
Not exactly sure what this does, I think it's more for setting the charset of the database, but not of the connection... anyway, it did not help
If needed I'm converting the strings to the forum charset now, should be fine
|
By default variable $config['Mysqli']['charset'] in /forum/config.php is commented. But in cases where the vBulletin encoding does not match with the MySQL default encoding, this variable must be uncommented and set to desired value (for example 'utf8', if MySQL uses the default latin1-swedish-ci).
Keep this in mind when vBMediaWiki's search module connecting to a database with direct function mysql_connect (сompare with the parameters db_connect, called from /forum/includes/class_core.php ). If $config['Mysqli']['charset'] exists, SQL inctruction "SET NAMES '<charset>'" must be executed after connecting to the database to set the properly encoding.