Home > PHP Framework > ThinkPHP > body text

What is the solution to Chinese garbled characters in thinkphp?

爱喝马黛茶的安东尼
Release: 2019-08-22 10:07:26
Original
4374 people have browsed it

What is the solution to Chinese garbled characters in thinkphp?

The following situation often occurs. After opening the web page, Chinese characters are displayed as garbled characters.

What is the solution to Chinese garbled characters in thinkphp?

First we check the encoding format of the web page file we wrote. Point the mouse to the web page file, right-click and open it in notepad mode.

What is the solution to Chinese garbled characters in thinkphp?

##Related recommendations: "

ThinkPHP Tutorial"

Then click "File" --> "Save as..." .

What is the solution to Chinese garbled characters in thinkphp?

Change the encoding format to utf-8 format, and then click Save.

What is the solution to Chinese garbled characters in thinkphp?

When editing the web page in Dreamware, change the encoding format to utf-8.

What is the solution to Chinese garbled characters in thinkphp?

Modify in dreamware -> Page Properties, Title/Encoding, change to utf-8 format.

What is the solution to Chinese garbled characters in thinkphp?

What is the solution to Chinese garbled characters in thinkphp?

Add the mysql database encoding format to utf8-genera_ci and storage engine MyISAM.

What is the solution to Chinese garbled characters in thinkphp?

The above is the detailed content of What is the solution to Chinese garbled characters in thinkphp?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template