Topic: Characters in the browser show up as "???"

Hi.

I am using PunBB 1.2.14 with Japanese lang pack.  I just moved to a new server (php 5.2.1 and MySQL 5.0.27).  Everything went fine without any error, but all Japanese charcaters in the name of forums and the post (title and content) show up as "???."  Japanes characters in the menu, the information box, and words that are localized with Japanese lang pack show up fine.

The exported database from the old server is in UTF-8 and I confirmed that all charcaters are fine.  Then, I checked characters in the imported database and found they are fine in all area.

I wonder if there are any code that I can add to the punBB files to tell the program to read UTF-8 correctly.

Could anyone please help me to solve this or have any suggestion??  Thank you!

Re: Characters in the browser show up as "???"

If you weren't in utf8 in the first place, you need to convert your database tables and data.

Re: Characters in the browser show up as "???"

Thank you for the reply!  It is in utf-8 in the first place...  Everything also looks fine in the database in the new server.

I had a similar case with my WordPress and fixed it by adding "mysql_query("SET NAMES utf8", $this->dbh);" in wp-db.php.  I am wondering if I can do something to Punbb.  Could anybody tell me where can I put this line if possible...?