user.getUserinfo().setSex(new String(pu.getSex().getBytes("ISO8859_1"),"GB2312"));
user.setNickname(new String(pu.getName().getBytes("ISO8859_1"),"GB2312"));
userService.createUser(user); String(byte[] bytes, int offset, int length, String charsetName) 通過使用指定的字符集解碼指定的 byte 子數組,構造一個新的
String
。
byte[] |
getBytes(String charsetName) 使用指定的字符集將此 String 編碼為 byte 序列,并將結果存儲到一個新的 byte 數組中 |
#800080
#7B7D62
#56B6E9
#4B8D32
posted on 2007-08-29 13:45
摩西 閱讀(420)
評論(0) 編輯 收藏 所屬分類:
work_2007