Skip to content
Browse files

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 <>
  • Loading branch information...
1 parent abf0341 commit 94ee4697afef281095b5055ab9a60986e79c998f @colinsc colinsc committed with PaulPoulain Mar 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 authorities/
2 authorities/
@@ -35,7 +35,7 @@ =head1
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'), { } );

0 comments on commit 94ee469

Please sign in to comment.
Something went wrong with that request. Please try again.