1. 程式人生 > >SQLException: Incorrect string value: 'xE4xB8xADxE5x9BxBD' for column at row 1

SQLException: Incorrect string value: 'xE4xB8xADxE5x9BxBD' for column at row 1

utf8 for cep inf string nco 數據 技術 分享圖片

這個是由於新建數據庫沒有選擇默認字符集導致的,只要選擇utf8即可。

技術分享圖片

如果以上還無法解決,那可能是表裏的varchar字符集也不對

SQLException: Incorrect string value: '\xE4\xB8\xAD\xE5\x9B\xBD' for column at row 1