Home >Backend Development >PHP Tutorial >Solution to the problem that garbled characters appear when searching for Chinese characters on the destoon website after transferring the server_PHP tutorial

Solution to the problem that garbled characters appear when searching for Chinese characters on the destoon website after transferring the server_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:24:25956browse

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

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

将.htaccess文件中的

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

改为

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

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

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/825464.htmlTechArticle很多使用destoon的用户在网站转移服务器后,一切正常,但是在有搜索页面时,搜索汉字就会出现乱码 框框 之类的符号,而搜索数字,英文...
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