How to set sqlyog Chinese garbled characters _ PHP Tutorial

Source: Internet
Author: User
How to set sqlyog Chinese garbled characters. 1. enter the following code in SQLyog and execute SETcharacter_set_clientutf8; encode; SETcharacter_set_connectionutf8; if the above code does not work, run the following code in SQLyog:

SET character_set_client = utf8;
SET character_set_results = gb2312;
SET character_set_connection = utf8;

If not, you can change it to Gbk. It is okay to change the encoding type according to the text encoding of your data. Provide the Gbk code:

SET character_set_client = gbK;
SET character_set_results = gbK;
SET character_set_connection = utf8;

However, the SQL statement cannot be restarted.

2. Tools-> Preference Base-> Editor modify Fonts
After modification, restart SQLyog!

Optional SET character_set_client = utf8; SET character_set_results = gb2312; SET character_set_connection = utf8; if the above does not work, you can also...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.