Commit 012c16d0 authored by Chia-liang Kao's avatar Chia-liang Kao Committed by Alex Vandiver
Browse files

encode_utf8

parent d0c0ca93
......@@ -67,7 +67,7 @@ my $should_loc = { map { $_ => 1 } qw(Status) };
my $col_entry = sub {
my $col = shift;
return {
header => loc($col->{title} || $col->{attribute}),
header => Encode::encode_utf8(loc($col->{title} || $col->{attribute})),
map => $m->comp(
"/Elements/ColumnMap",
Name => $col->{attribute},
......@@ -124,7 +124,7 @@ while (my $row = $Tickets->Next) {
# remove tabs from all field values, they screw up the tsv
$val = '' unless defined $val;
$val =~ s/(?:\n|\r)//g; $val =~ s{\t}{ }g;
$val;
Encode::encode_utf8($val);
} @$col)."\n");
}
}
......
Supports Markdown
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