用下面的内容替代modules里的对应内容,如果不行你可能需要把所有数据导出来然后修改database.sql,给每个table都加上UTF-8字符集的标识,然后重新创建数据库,把数据dump回去就行了。也许根本就不需要这么做。如果一定要这么做,千万记得把数据dump好了,丢了我就杀了你,哈哈!!!你可以到http://jackey.no-ip.org/drupal上测试(输入关键字“我的妈”)。
node.module:
$find = do_search(array("keys" => $keys, "type" => "node", "select" => "SELECT n.nid AS lno, n.title AS title, n.created AS created, u.uid AS uid, u.name AS name, 1 AS count FROM node n LEFT JOIN users u ON n.uid = u.uid WHERE ( n.title LIKE BINARY '%' OR n.teaser LIKE BINARY '%' OR n.body LIKE BINARY '%') AND n.status = 1"));
最新评论