具体操作:
String destination ="testå¾·çu008Eu009B西äºu009A"; try { if(destination.equals(new String(destination.getBytes("iso8859-1"), "iso8859-1"))){ destination=new String(destination.getBytes("iso8859-1"),"utf-8"); System.out.println(destination); } } catch (UnsupportedEncodingException e) { e.printStackTrace(); }
结果: