Mysql writes Chinese characters garbled

mysql_query(&mysql,"SET NAMES'GB2312'");//Set the database character format to solve the Chinese garbled problem

Guess you like

Origin blog.csdn.net/Hat_man_/article/details/108027061