mysql_set_charset()。 这个函数是这样用的: mysql_set_charset('utf8', $link); 成功返回 true,失败返回 false。 就这么简单。 下面是php手册原文 this is the preferred way to change the charset. using mysql_query() to execute set names .. is not recommended. 【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!