When dealing with sfs extensions, writing Chinese characters results in ??.
After consulting Google, it was found that as long as utf-8 is used everywhere, unnecessary troubles will be reduced.
1 In Java code, use the default encoding method and no need to handle it.
2 When connecting to MySQL in Java, set the connection string to use unicode connection and encoding to utf-8.
jdbc:mysql://localhost:3306/yourDB?useUnicode=true&characterEncoding=utf-8;
3 In MySQL, use utf-8 encoding.
alter database DEFAULT CHARACTER SET utf8;
You can check the encoding types in several places by using "mysql> show variables like 'char%' " in MySQL.
If the connection is not utf-8, Chinese characters cannot be displayed in the DOS window, but GBK can.
This way, there should be no major issues. It has been tested in Android, and both the client interface and MySQL can display Chinese characters without any problems.