diff --git a/application/common/library/Email.php b/application/common/library/Email.php index 8d186fc35e22e4753c3be8c2fa7389ba51b826f7..dde93a8b2998bff544ab2e1912af3730c15d8a24 100644 --- a/application/common/library/Email.php +++ b/application/common/library/Email.php @@ -214,6 +214,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', 'UTF-8,GBK,GB2312,BIG5'); $this->setError($message); } catch (\Exception $e) { $this->setError($e->getMessage());