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

WBOY
Release: 2016-06-01 11:51:40
Original
1084 people have browsed it

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

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

将.htaccess文件中的

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

Copy after login

改为

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

Copy after login

如果设置了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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template