diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-01-09 18:26:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-09 18:26:01 +0100 |
commit | 84780b25e91a4ad91549bc4a723e1f08916e8893 (patch) | |
tree | ef61bc2c930a01a0819424979101540531ec7ccb | |
parent | 039975deef0fae8e9d64db7b237e262e4f095eff (diff) | |
download | bugzilla-84780b25e91a4ad91549bc4a723e1f08916e8893.tar.gz bugzilla-84780b25e91a4ad91549bc4a723e1f08916e8893.tar.xz |
Bug 1429075 - Encoding issue in notification area (mojibake)
-rw-r--r-- | template/en/default/request/queue.json.tmpl | 6 |
1 files changed, 5 insertions, 1 deletions
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 %] |