But using sqlyong mysql insert operation in Chinese things are always tip 1366 error:
CodePudding user response:
Insert before perform set names utf8;CodePudding user response:
1. The table structure post2. Show variables like 'char %' what is the result?
CodePudding user response:
Need to insert this sentence, support Chinesemysql_query (& amp; M_sqlCon, "SET NAMES 'GB2312");//set up the database character format, solving the problem of Chinese garbled