使用Yii2 自带的\yii::$app->security->encryptByKey($data, $key, $info);加密后,restful Api 接口用return 返回json格式数组的时候报“Malformed UTF-8 characters, possibly incorrectly encoded.”错误如何解决?
使用Yii2 自带的\yii::$app->security->encryptByKey($data, $key, $info);加密后,restful Api 接口用return 返回json格式数组的时候报“Malformed UTF-8 characters, possibly incorrectly encoded.”错误如何解决?