forcing utf8 communications between perl & apache
authortipaul <tipaul>
Fri, 17 Feb 2006 15:28:55 +0000 (15:28 +0000)
committertipaul <tipaul>
Fri, 17 Feb 2006 15:28:55 +0000 (15:28 +0000)
C4/Interface/CGI/Output.pm

index fad75ce..8f8f3c6 100644 (file)
@@ -106,6 +106,7 @@ corresponds to the HTML page $html.
 
 sub output_html_with_http_headers ($$$) {
     my($query, $cookie, $html) = @_;
+    binmode(STDOUT, ":utf8");
     print $query->header(
        -type   => guesstype($html),
        -cookie => $cookie,