0
Follow
0
View

How to solve the problem of # Tencent Cloud?

dr_heqing 注册会员
2023-02-25 21:26

This answer part of the reference GPT, GPT_Pro better solve the problem
There may be coding problems, first to confirm the website encoding format, such as utf-8, gbk, etc., And whether the encoding format of the database is the same as the encoding format of the website. If not, you can modify the database character set to make it consistent with the website.

In MySQL, you can modify the character set with the following statement:

ALTER DATABASE  CHARACTER SET utf8 COLLATE utf8_general_ci; 

or directly modify default-character-set=utf8 in mysql.ini, and restart the MySQL service to take effect.

Also, note that the character set is declared in the html file and the

in the tag
charset="utf-8">

This will solve the garble problem.
If the answer is helpful, please accept it.

About the Author

Question Info

Publish Time
2023-02-25 21:26
Update Time
2023-02-25 21:26