The solution to the garbled code on the dedecms webpage: 1. Check from the background whether the encoding of the Dreamweaver management system being used is gbk or utf-8; 2. Check the encoding of the Dreamweaver template file htm, and then use Notepad Open the template file; 3. Click "Save As" to change the encoding to "utf-8".
The operating environment of this tutorial: Windows 10 system, DedeCMS version 5.7, Dell G3 computer.
dedecms What should I do if the webpage has garbled characters?
Solve the problem of inconsistent encoding of DedeCMS templates and garbled pages
DedeCMS system has two encoding versions: GBK and UTF-8. Everyone knows this. When you When the encoding of the template is different from the encoding of the Dreamweaver content management system, garbled characters will appear on the front page.
First of all, we need to check from the background whether the encoding of the Dreamweaver management system we are using is gbk or utf-8, as shown below:
##Then check the encoding of the Dreamweaver template file htm and open it with Notepad, as shown below: The Dreamweaver system encoding and Template files, if the two encodings are different, garbled characters will appear. Then we need to modify the encoding format of the template file. Changing the system encoding requires reinstalling dedecms, which is too troublesome. The method to solve the garbled characters is as follows: Method 1: This is the simplest method. Use Notepad to open the template file, as shown below: Click Save As to change the encoding to utf-8. Save this to be the encoding format of utf-8. The way to change it to gbk is to change the encoding to ANSI and save That’s it. Method 2: Use Dreamweaver software to modify the encoding, as shown below: Confirm and save. Method 3: Use other software tools. I won’t give many examples here. There are many on Baidu. Recommended learning:The above is the detailed content of What should I do if the dedecms webpage has garbled characters?. For more information, please follow other related articles on the PHP Chinese website!