From 11082cd1f519735f95329ea90ecdabae7ea877b9 Mon Sep 17 00:00:00 2001 From: clipperl Date: Wed, 8 Aug 2018 19:40:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E9=82=AE=E4=BB=B6=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E5=9B=BA=E5=AE=9A=E9=87=87=E7=94=A8=20UTF-8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/xxl/job/admin/core/util/MailUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/MailUtil.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/MailUtil.java index d046e200..7aa11879 100644 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/MailUtil.java +++ b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/MailUtil.java @@ -44,7 +44,7 @@ public class MailUtil { } email.setAuthenticator(new DefaultAuthenticator(XxlJobAdminConfig.getAdminConfig().getMailUsername(), XxlJobAdminConfig.getAdminConfig().getMailPassword())); - email.setCharset(Charset.defaultCharset().name()); + email.setCharset("UTF-8"); email.setFrom(XxlJobAdminConfig.getAdminConfig().getMailUsername(), XxlJobAdminConfig.getAdminConfig().getMailSendNick()); email.addTo(toAddress);