Solution of Garbled Characters in Search of Chinese Characters after destoon Website Transfers to Server

  • 2021-07-02 23:45:58
  • OfStack

Many users who use destoon are normal after the website is transferred to the server, but when there is a search page, symbols such as garbled codes will appear when searching Chinese characters, while searching numbers and English are normal.

For users who use the destoon (GBK) template, the solution is:

In the. htaccess file


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

Replace with


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

If the NU flag is set, the conversion from Unicode to UTF 8 will not occur. All Unicode characters will remain in its% xx format and the problem will be solved!


Related articles: