Home  >  Article  >  Backend Development  >  How to solve the garbled problem through common.inc.php

How to solve the garbled problem through common.inc.php

藏色散人
藏色散人Original
2021-09-19 15:16:031575browse

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.

How to solve the garbled problem through common.inc.php

#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!

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