MySQL encoding problem small summary

Coding problems small summary

  1. View database coding
    show variables like 'char%';
    Here Insert Picture Description
    here are best set to utf8 encoding format, when you install some version of mysql database encoding settings have this option, and if not, you can modify the configuration file ( my.ini ) then restart the mysql.

  2. Set the database encoding
    SET character_set_client = UTF8;
    SET = the character_set_connection UTF8;
    ...

  3. Modify the current command window coding
    chcp 65001

  4. View the current command window coding
    chcp
    displayed as 65001 is the utf8 encoding.

  5. The best idea in the coding which are located to utf8

  6. You can manage language settings in the machine setting modification of the computer system's coding format

Released five original articles · won praise 0 · Views 359

Guess you like

Origin blog.csdn.net/cd_laotang/article/details/104373989