|
@@ -177,10 +177,8 @@ public class EmailUtil {
|
|
|
String contentType = part.getContentType();
|
|
|
String html = partContent.toString();
|
|
|
try{
|
|
|
- logger.info(contentType+"========================"+html);
|
|
|
if(contentType.indexOf("charset=") != -1){
|
|
|
contentType = contentType.substring(contentType.indexOf("charset=")+8,contentType.length()).replaceAll("\"","");
|
|
|
- logger.info(contentType+"========================"+"charset="+contentType.toLowerCase());
|
|
|
html = html.replace("charset="+contentType.toLowerCase(),"charset=UTF-8");
|
|
|
html = html.replace("charset="+contentType.toUpperCase(),"charset=UTF-8");
|
|
|
}
|