About database Chinese garbled solution

xiaoxiao2021-03-06  36

Everyone knows that the code format of the database is generally ISO-8859-1, and Simplified Chinese is generally GB2312, which can be coupled with this code when connecting: Connection conn = drivermanager.getConnection ("JDBC: mysql: // localhost / jive? useunicode = true & characterencoding = GB2312 "," root "," ");

转载请注明原文地址:https://www.9cbs.com/read-79834.html

New Post(0)