修改编码

master
jiahuiwen 2021-10-27 17:43:22 +08:00
parent 73fad773b3
commit 382218b56e
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ public class JsonUtil {
public static HaoGameParamBean serializeToObject(String str) throws IOException, ClassNotFoundException {
ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(str.getBytes("ISO-8859-1"));
ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(str.getBytes("UTF-8"));
ObjectInputStream objectInputStream = new ObjectInputStream(byteArrayInputStream);
HaoGameParamBean object = (HaoGameParamBean) objectInputStream.readObject();
objectInputStream.close();