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 <chrisc@catalyst.net.nz> Passed-QA-by: Mason James <mtj@kohaaloha.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
736baf6ade
commit
0680433872
1 changed files with 1 additions and 1 deletions
|
@ -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 (?, ?);');
|
||||
|
|
Loading…
Reference in a new issue