The following situation often occurs. After opening the web page, Chinese characters are displayed as garbled characters.
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.
##Related recommendations: "ThinkPHP Tutorial"
Then click "File" --> "Save as..." . Change the encoding format to utf-8 format, and then click Save. When editing the web page in Dreamware, change the encoding format to utf-8. Modify in dreamware -> Page Properties, Title/Encoding, change to utf-8 format. Add the mysql database encoding format to utf8-genera_ci and storage engine MyISAM.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!