利用下面方法:
private String getEncodeStr(String str) throws Exception{ return new String(str.getBytes("iso-8859-1"),"UTF-8");
}