Cause: java.sql.SQLException: Incorrect string value: '\xE5\x8C\x97\xE4\xBA\xAC...' for column 'user_location' at row 1

今天做update的时候读取不到数据,但是查了、反复检查字段也没有错Cause: java.sql.SQLException: Incorrect string value: '\xE5\x8C\x97\xE4\xBA\xAC...' for column 'user

原来数据库中使用了默认字段latin1 ,改成utf8就好了,坑(为什么有些需要改有些不需要???我也不知道)

如图

Cause: java.sql.SQLException: Incorrect string value: '\xE5\x8C\x97\xE4\xBA\xAC...' for column 'user

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2021-12-09
  • 2022-02-13
  • 2022-12-23
猜你喜欢
  • 2022-01-22
  • 2021-11-19
  • 2022-12-23
  • 2021-07-05
  • 2021-12-04
  • 2021-07-31
  • 2021-11-20
相关资源
相似解决方案