public class EncodingChange {
public static String toString(String str) {
try {
if (str == null || str.trim().equals("")) {
return "";
} else {
return new String(str.getBytes("ISO-8859-1"), "UTF-8");
}
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
return str;
}
}
}