generated from root/miduo_server
修改编码
parent
73fad773b3
commit
382218b56e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue