summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-01-09 18:26:01 +0100
committerGitHub <noreply@github.com>2018-01-09 18:26:01 +0100
commit84780b25e91a4ad91549bc4a723e1f08916e8893 (patch)
treeef61bc2c930a01a0819424979101540531ec7ccb /template
parent039975deef0fae8e9d64db7b237e262e4f095eff (diff)
downloadbugzilla-84780b25e91a4ad91549bc4a723e1f08916e8893.tar.gz
bugzilla-84780b25e91a4ad91549bc4a723e1f08916e8893.tar.xz
Bug 1429075 - Encoding issue in notification area (mojibake)
Diffstat (limited to 'template')
-rw-r--r--template/en/default/request/queue.json.tmpl6
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 %]