No need to utf8 encode, this breaks xls file
[manu/RT-Extension-SearchResults-XLS.git] / html / Search / Results.xls
index 8074692..785092e 100644 (file)
@@ -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++;
         }