From: Dylan William Hardison Date: Tue, 9 Jan 2018 17:26:01 +0000 (-0500) Subject: Bug 1429075 - Encoding issue in notification area (mojibake) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84780b25e91a4ad91549bc4a723e1f08916e8893;p=thirdparty%2Fbugzilla.git Bug 1429075 - Encoding issue in notification area (mojibake) --- diff --git a/template/en/default/request/queue.json.tmpl b/template/en/default/request/queue.json.tmpl index 121b52337..ec0f0ef66 100644 --- a/template/en/default/request/queue.json.tmpl +++ b/template/en/default/request/queue.json.tmpl @@ -38,5 +38,9 @@ foreach my $request (@$requests) { } push @results, \%item; } -$output .= JSON::XS::encode_json( \@results ); +{ + use feature 'state'; + state $json = JSON::XS->new->utf8->ascii; + $output .= $json->encode( \@results ); +} [% END %]