0
첨부 파일을 디코딩 할 수 없습니다. 그것은 인코딩 된 =?utf-8?B?MS5qcGc=
과 같은 것입니다. 첨부 파일을 디코딩해야합니다. 자바 코드 나는[MIME] 자바 메일의 첨부 파일을 디코딩하는 방법
private static String decodeName(String name) throws Exception {
if (name == null || name.length() == 0) {
return "unknown";
}
String ret = java.net.URLDecoder.decode(name, "UTF-8");
// also check for a few other things in the string:
ret = ret.replaceAll("=\\?utf-8\\?q\\?", "");
ret = ret.replaceAll("\\?=", "");
ret = ret.replaceAll("=20", " ");
return ret;
}
디코딩을 위해 저를 도와주세요 디코딩하는 데 사용하고 있습니다.