Home > php教程 > php手册 > body text

destoon网站转移服务器后搜索汉字出现乱码的解决方法

WBOY
Release: 2016-06-06 20:21:12
Original
1219 people have browsed it

这篇文章主要介绍了destoon网站转移服务器后搜索汉字出现乱码的解决方法,非常实用,需要的朋友可以参考下

很多使用destoon的用户在网站转移服务器后,,一切正常,但是在有搜索页面时,搜索汉字就会出现乱码 框框 之类的符号,而搜索数字,英文则很正常。

对于使用destoon(GBK)模板的用户来说,解决方法为:

将.htaccess文件中的

RewriteRule ^(.*)-htm-(.*)$ $1.php?$2

改为

RewriteRule ^(.*)-htm-(.*)$ $1.php?$2 [NU]

如果设置了NU标记,从Unicode转换为UTF – 8将不会发生。所有Unicode字符会保持它的%xx格式不变,问题就得以解决!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!