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 "," ");