'utf8','target'=>'gbk') ;" and save it."/> 'utf8','target'=>'gbk') ;" and save it.">

Home >CMS Tutorial >PHPCMS >What to do if the content collected by phpcms is garbled

What to do if the content collected by phpcms is garbled

藏色散人
藏色散人Original
2020-05-30 10:59:462384browse

What to do if the content collected by phpcms is garbled

What should I do if the content collected by phpcms is garbled?

Open the file/spider/admin/admin.inc.php that needs to be modified

Find the original code:

$charset_config = array('self'=>'gbk','target'=>'utf8');//GBK配置
//$charset_config = array('self'=>'utf8','target'=>'gbk');

Change it to:

//$charset_config = array('self'=>'gbk','target'=>'utf8');//GBK配置
$charset_config = array('self'=>'utf8','target'=>'gbk');

In fact, just put the "//" in front of the previous line of code.

The above is the detailed content of What to do if the content collected by phpcms is garbled. For more information, please follow other related articles on the PHP Chinese website!

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