在插入中文字符到mysql数据库中时,发现数据库是以乱码的形式保存的。
为了避免这种情况,需要在插入之前设置mysql数据库的编码encoding 为utf8
如:$db = new ezSQL_mysqli(
$this->config['feedback_db_user'],
$this->config['feedback_db_psw'],
$this->config['feedback_db_name'],
$this->config['feedback_db_host'],
"utf8");