From e0b008097a035afd39bef68de0501880e368d7f7 Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 9 Jun 2021 14:08:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=82=AE=E4=BB=B6=E5=8F=91?= =?UTF-8?q?=E9=80=81=E6=97=B6=EF=BC=8C=E8=85=BE=E8=AE=AF=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E9=82=AE=E7=AE=B1=E8=BF=94=E5=9B=9E=E7=9A=84=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E7=BC=96=E7=A0=81=E5=BD=B1=E5=93=8D=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/library/Email.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/common/library/Email.php b/application/common/library/Email.php index 7636d761d..4ddb0b651 100644 --- a/application/common/library/Email.php +++ b/application/common/library/Email.php @@ -219,6 +219,7 @@ class Email preg_match_all("/Expected: (\d+)\, Got: (\d+)( \| (.*))?\$/i", $e->getMessage(), $matches); $code = isset($matches[2][3]) ? $matches[2][3] : 0; $message = isset($matches[2][0]) ? $matches[4][0] : $e->getMessage(); + $message = mb_convert_encoding($message, 'UTF-8', 'GBK,GB2312,BIG5'); $this->setError($message); } catch (\Exception $e) { $this->setError($e->getMessage()); -- Gitee