From dfefcbf383bed85eb8f47f7d10d56443a2a46361 Mon Sep 17 00:00:00 2001 From: Hill Date: Wed, 3 Feb 2021 12:26:10 +0000 Subject: [PATCH] change to use utf8Export --- src/_cache_dev.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/_cache_dev.php b/src/_cache_dev.php index ed78245..d8ab45a 100644 --- a/src/_cache_dev.php +++ b/src/_cache_dev.php @@ -16,9 +16,7 @@ public function __invoke(CurlResponder $r, $purgeKey) */ function () use (&$rinfo, $r) { $rinfo = (array)$r; - if (!mb_detect_encoding($rinfo['body'], 'utf-8', true)) { - $rinfo['body'] = utf8_encode($rinfo['body']); - } + $rinfo['body'] = \PMVC\utf8Export($rinfo['body']); \PMVC\dev( /**