From 94ee4697afef281095b5055ab9a60986e79c998f Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Fri, 23 Mar 2012 12:17:58 +0000 Subject: [PATCH] Bug 7816 :[SIGNED-OFF] Encode output as utf-8 dont just flag it as such Intention of code is that data is output in utf-8 requires an encoding layer to ensure that. ':utf-8' flags the stream as utf-8 but does not ensure output characters are correctly encoded signed-off-by: Jonathan Druart Signed-off-by: Paul Poulain --- authorities/ysearch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authorities/ysearch.pl b/authorities/ysearch.pl index ff6adbb60e..56ef8e2e34 100755 --- a/authorities/ysearch.pl +++ b/authorities/ysearch.pl @@ -35,7 +35,7 @@ use C4::Auth qw/check_cookie_auth/; my $query = new CGI; -binmode STDOUT, ":utf8"; +binmode STDOUT, ':encoding(UTF-8)'; print $query->header( -type => 'text/plain', -charset => 'UTF-8' ); my ( $auth_status, $sessionID ) = check_cookie_auth( $query->cookie('CGISESSID'), { } ); -- 2.39.5