Skip to content

Commit

Permalink
change to use utf8Export
Browse files Browse the repository at this point in the history
  • Loading branch information
HillLiu committed Feb 3, 2021
1 parent 0e7d61e commit dfefcbf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/_cache_dev.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
/**
Expand Down

0 comments on commit dfefcbf

Please sign in to comment.