Home  >  Article  >  Backend Development  >  destoon网站转移服务器后搜索汉字出现乱码的解决方法_PHP

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

WBOY
WBOYOriginal
2016-06-01 11:51:401043browse

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

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

将.htaccess文件中的

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

改为

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

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

Statement:
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