1、判断一个字符串是否为iso8859-1编码:
String title = "67å款人"; if(title.equals(new String(title.getBytes("iso8859-1"), "iso8859-1"))) { title=new String(title.getBytes("iso8859-1"),"utf-8"); } System.out.println(title);