Webmastersite.net
Register Log In

UTF issue

Title UTF issue
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
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership sertan6
Views 457 views. Averaging 0 views per day.
Similar Topics
Submission Date Nov 01, 2007 - 3:54 PM