String encodeBefore = "乱码问题";
try {
String encodeAfter = new String(encodeBefore.getBytes("ISO-8859-1"),"UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
try {
String encodeAfter = new String(encodeBefore.getBytes("ISO-8859-1"),"UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}