phpデータベースの中国語文字化けしソリューションの1つ


ネット上の他の解決策がまだ問題を解決できない場合、
この方法を試してみます.
  $sql="set names utf8";   $sqlhelper->execute_dql($sql);
すなわち、データベースをselect操作する前に、データベースの符号化をutf 8に設定してからselect操作を行う.
例:
execute_dql($sql);
  $sql="select * from users where userId = ".$id;
  $result = $sqlhelper->execute_dql($sql);
  $row = mysql_fetch_assoc($result);
  ?>