mysql python字符集
在以下幾處有字符集設(shè)置
python 文件編碼 :指存儲(chǔ)py文件的編碼
python 代碼編碼:指賦值字符串時(shí)的默認(rèn)編碼
mysqldb connection對(duì)象:mysql db連接器代碼。這與mysql connection是有區(qū)別的。舉例來說,在mysql的表中將mysql connection的編碼設(shè)定為utf8,申請(qǐng)一個(gè)不帶編碼參數(shù)的mysqldb 的connection, 它的編碼還是latin-1。
mysql 數(shù)據(jù)庫配置的編碼:mysql的編碼。