Commit 4d70cfb3 authored by Alex Vandiver's avatar Alex Vandiver
Browse files

TSV need not explicitly encode as UTF-8; all output is UTF-8 encoded

RT::Interface::Web::Handler ensures that any code which contains
characters is encoded in UTF-8 before being sent to the browser.  As
such, the explicit encoding here is unnecessary.
parent 701c7dde
......@@ -72,7 +72,7 @@ my $col_entry = sub {
delete $col->{title}
if $col->{title} and $col->{title} =~ /^\s*#\s*$/;
return {
header => Encode::encode( "UTF-8", loc($col->{title} || $col->{attribute}) ),
header => loc($col->{title} || $col->{attribute}),
map => $m->comp(
"/Elements/ColumnMap",
Name => $col->{attribute},
......@@ -116,7 +116,7 @@ while (my $row = $Collection->Next) {
$val =~ s/(?:\n|\r)+/ /g; $val =~ s{\t}{ }g;
$val = $no_html->scrub($val);
$val = HTML::Entities::decode_entities($val);
Encode::encode( "UTF-8", $val);
$val;
} @$col)."\n");
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment