In the MySQL activate the option to add-character-set default = gb2312
- with-charset selection of projects:
Shell>. / Configure - with-charset = CHARSET
CHARSET can be big5, cp1251, cp1257, czech, danish, dec8, dos, euc_kr, gb2312 gbk, german1, hebrew, hp8, hungarian, koi8_ru, koi8_ukr, latin1, latin2, sjis, swe7, tis620, ujis, usa7, or win1251 win1251ukr one. See 9.1.1 for data collection and sequencing of the characters. Note: If you want to change the character set, you must make distclean done during configuration! If you want to transform between the server and client characters, you should look at the SET OPTION CHARACTER SET command. See 7.25 SET OPTION syntax. Warning: If you create a database table after any change character set, you will be running on each table myisamchk-r-q, otherwise, you might not be an index to sort correctly. (If you installed MySQL, create the table, and then re-configured MySQL use a different set of characters and re-install it, and you have such a situation may occur.)
Tags: Character, java gb2312, java mysql, java Set, Set






