From 419ea504f65684eb5e5c97f23545b44767ad01dd Mon Sep 17 00:00:00 2001 From: Emmanuel Lacour Date: Wed, 12 Mar 2014 18:21:48 +0100 Subject: [PATCH] No need to utf8 encode, this breaks xls file --- html/Search/Results.xls | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/html/Search/Results.xls b/html/Search/Results.xls index 8074692..785092e 100644 --- a/html/Search/Results.xls +++ b/html/Search/Results.xls @@ -82,7 +82,7 @@ my $col_entry = sub { delete $col->{title} if $col->{title} and $col->{title} =~ /^\s*#\s*$/; return { - header => Encode::encode_utf8(loc($col->{title} || $col->{attribute})), + header => loc($col->{title} || $col->{attribute}), map => $m->comp( "/Elements/ColumnMap", Name => $col->{attribute}, @@ -147,7 +147,6 @@ while (my $row = $Tickets->Next) { $val =~ s/(?:\n|\r)//g; $val =~ s{\t}{ }g; $val = $no_html->scrub($val); $val = HTML::Entities::decode_entities($val); - Encode::encode_utf8($val); $worksheet->write_string($ws_row, $ws_col, $val); $ws_col++; } -- 2.11.0