[Koha-patches] [PATCH] Fixes bug #2773
Frederic Demians
f.demians at tamil.fr
Tue Nov 11 11:01:21 CET 2008
---
C4/Output.pm | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/C4/Output.pm b/C4/Output.pm
index fd32541..0668873 100644
--- a/C4/Output.pm
+++ b/C4/Output.pm
@@ -364,6 +364,11 @@ sub output_html_with_http_headers ($$$;$) {
my $query = shift;
my $cookie = shift;
my $html = shift;
+ require Encode;
+ $html = Encode::decode_utf8( $html );
+ $html =~ s/\x88//g;
+ $html =~ s/\x89//g;
+ $html = Encode::encode( "utf8", $html );
my $content_type = @_ ? shift : "text/html";
$content_type = "text/html" unless $content_type =~ m!/!; # very basic sanity check
print $query->header(
--
1.5.5.GIT
More information about the Koha-patches
mailing list