Bug 6679: Fixing admin/aqplain :encoding(UTF-8) gives strict validation
authorChris Cormack <chrisc@catalyst.net.nz>
Mon, 31 Oct 2011 07:57:19 +0000 (20:57 +1300)
committerPaul Poulain <paul.poulain@biblibre.com>
Sun, 6 Nov 2011 17:29:12 +0000 (18:29 +0100)
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
tested with diacritics, no changes before and after the patch

admin/aqplan.pl

index ceb9950..9c75431 100755 (executable)
@@ -463,7 +463,7 @@ output_html_with_http_headers $input, $cookie, $template->output;
 sub _print_to_csv {
     my ( $header, $results ) = @_;
 
-    binmode STDOUT, ":utf8";
+    binmode STDOUT, ":encoding(UTF-8)";
 
     my $csv = Text::CSV_XS->new(
         {   sep_char     => $del,