My side of the project code is UTF-8, nearly 2 days before the launch of the customer said that the assigned database is GBK, and the database code can not be changed, is there any solution?

big head.

Mar.06,2021

is not online, it can be changed with a little effort.
change the project code, file storage code, filter code, and the encoding declaration on the page if there is a jsp.

if there is a place to determine the length of the field, the UTF8 is three bytes, and the GBK is 2 bytes, which also needs to be modified.

of course, the best way is to convince the customer that if the database is empty and the customer does not want to bother to modify it, you can do it yourself if you give it permission, but it is unlikely to change it if you put it with other databases.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32060-341a9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32060-341a9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?