[Koha-patches] [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.

Serhij Dubyk {Сергій Дубик} serhijdubyk at gmail.com
Tue Nov 6 13:21:33 CET 2012


From: Serhij Dubyk {Сергій Ð?= =?UTF-8?q?”убик} <serhijdubyk at gmail.com>

---
 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 926fe9d..528c3dd 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 (?, ?);');
-- 
1.7.10.4



More information about the Koha-patches mailing list