Can't store UTF-8 Content in MySQL Using Java PreparedStatement

后端 未结 6 1934
逝去的感伤
逝去的感伤 2020-12-18 07:29

For some strange reason I can\'t seem to add UTF-8 data to my MySQL database. When I enter a non-latin character, it\'s stored as ?????. Everything else is stored fine. S

6条回答
  •  我在风中等你
    2020-12-18 07:47

    Also check locale -a on ubuntu default Ubuntu works with en_us locale and doesn't have other locale installed. must specify characterEncoding=utf8 while connecting through JDBC.

提交回复
热议问题