//中文字符串轉換
private static final String INCODE = "ISO-8859-1";
private static final String ONCODE = "gb2312";
private static final String UTFCODE = "UTF-8";
try{
byte[] nameutf = name.getBytes(INCODE);
name = new String(nameutf,ONCODE);
name = new String(nameutf,UTFCODE);
}catch(UnsupportedEncodingException ex) {
throw new RuntimeException("Unsupported encoding type.");
}finally{
return name
}