Handle non-latin1 charsets
authoracli <acli>
Sun, 2 Feb 2003 00:13:10 +0000 (00:13 +0000)
committeracli <acli>
Sun, 2 Feb 2003 00:13:10 +0000 (00:13 +0000)
search.marc/search.pl

index 795516c..7bc0ced 100755 (executable)
@@ -26,6 +26,7 @@ use C4::Context;
 use C4::Search;
 use C4::Auth;
 use C4::Output;
+use C4::Charset;
 use C4::Biblio;
 use C4::SearchMarc;
 
@@ -107,4 +108,7 @@ if ($op eq "do_search") {
        $template->param("marclist" => $marclist);
 }
 # Print the page
-print $query->header(-cookie => $cookie), $template->output;
+print $query->header(
+    -type => guesstype($template->output),
+    -cookie => $cookie
+), $template->output;