String sta =null;
try {
sta = new String(status.getBytes("iso-8859-1"),"utf-8");
} catch (UnsupportedEncodingException e) {
}
本文探讨了在处理字符串状态时,如何使用ISO-8859-1和UTF-8编码进行转换,并通过示例代码展示实现过程,旨在解决跨语言字符显示问题。
String sta =null;
try {
sta = new String(status.getBytes("iso-8859-1"),"utf-8");
} catch (UnsupportedEncodingException e) {
}

被折叠的 条评论
为什么被折叠?