Python: 插入數據庫報錯:Incorrect string value: '\\xE9\\x9C

用Python 讀取文本而後插入數據庫, 內容包含有中文字符, 老是報以下錯誤,(已經保證數據庫編碼utf-8,文本內容一樣爲utf-8):web Traceback (most recent call last): File "xml2sqlOld.py", line 84, in handleMsg cursor.execute(sql) File "C:\Python27\l
相關文章
相關標籤/搜索