How to solve garbled characters through common.inc.php: 1. Open the common.inc.php file; 2. Modify the content to "$cfg_soft_lang = 'utf-8';"; 3. Correct select_images.php Just transcode.
#The operating environment of this article: Windows 7 system, DedeCMS5.6, Dell G3 computer.
How to solve the garbled problem through common.inc.php?
Garbled codes caused by website upgrade and solutions:
1. Find the /include/common.inc.php file of the Dreamweaver system;
2. Find The following code:
$cfg_version ='V57_GBK'; $cfg_soft_lang ='gb2312';
is modified to:
$cfg_version = 'V57_UTF-8'; $cfg_soft_lang = 'utf-8';
3. Transcode the following two files:
include/common.inc.php include/dialog/select_images.php
are both converted to utf-8 encoding format, or Click to download the corresponding upgrade compressed package and overwrite the corresponding file of utf-8!
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to solve the garbled problem through common.inc.php. For more information, please follow other related articles on the PHP Chinese website!