From 0680433872d111331f13ab98a72d4efabe1834d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Serhij=20Dubyk=20=7B=D0=A1=D0=B5=D1=80=D0=B3=D1=96=D0=B9=20?= =?utf8?q?=D0=94=D1=83=D0=B1=D0=B8=D0=BA=7D?= Date: Tue, 6 Nov 2012 14:16:39 +0200 Subject: [PATCH] Bug 9010 - Quote of the day: Umlauts do not display correctly Added utf8-encoding in json-header for correct view quotes in quotes editor. Signed-off-by: Chris Cormack Passed-QA-by: Mason James Signed-off-by: Jared Camins-Esakov --- tools/quotes/quotes_ajax.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/quotes/quotes_ajax.pl b/tools/quotes/quotes_ajax.pl index 926fe9d488..528c3dd8a5 100755 --- a/tools/quotes/quotes_ajax.pl +++ b/tools/quotes/quotes_ajax.pl @@ -46,7 +46,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( my $params = $cgi->Vars; # NOTE: Multivalue parameters NOT allowed!! -print $cgi->header('application/json'); +print $cgi->header('application/json; charset=utf-8'); if ($params->{'action'} eq 'add') { my $sth = $dbh->prepare('INSERT INTO quotes (source, text) VALUES (?, ?);'); -- 2.39.5