projects
/
manu
/
RT-Extension-SearchResults-XLS.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
No need to utf8 encode, this breaks xls file
[manu/RT-Extension-SearchResults-XLS.git]
/
html
/
Search
/
Results.xls
diff --git
a/html/Search/Results.xls
b/html/Search/Results.xls
index
8074692
..
785092e
100644
(file)
--- 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 {
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},
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);
$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++;
}
$worksheet->write_string($ws_row, $ws_col, $val);
$ws_col++;
}