Message Text |
I want to use the forum with a non-english language but i don't want to use the multilingual templates, they are very difficult to edit.
First of all i changed both wrappers to
use 'UTF-8'. My database is set to utf8_unicode_ci.
Although my language characters shows ok in the forum, phpmyadmin shows garbage.
I searched a little and found a way to fix this by adding in mysql.php:
function db($dbhost, $dbuser, $dbpass, $databasename)
{
$this->dbh = mysql_connect($dbhost, $dbuser, $dbpass);
if (!$this->dbh) return false;
////////// my code;
mysql_query("SET NAMES 'utf8'", $this->dbh);
////////////////////////////////////////////////////
mysql_select_db($databasename);
Not sure if this a bug or because i don't use the multilingual templates, so i am posting it just in case.
Please tell me if there is something wrong with this fix, before i start to use the forum for real. As far as i tested it, it works fine.
thanks |