From: tla Date: Fri, 25 Oct 2013 13:07:51 +0000 (+0200) Subject: get rid of erroneous double-decode X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=43800a64915ee540089a331e3518884f17ef746b;p=scpubgit%2Fstemmatology.git get rid of erroneous double-decode --- diff --git a/base/lib/Text/Tradition/Collation.pm b/base/lib/Text/Tradition/Collation.pm index f2a0a42..ae36da5 100644 --- a/base/lib/Text/Tradition/Collation.pm +++ b/base/lib/Text/Tradition/Collation.pm @@ -1398,13 +1398,13 @@ sub as_csv { my @result; # Make the header row $csv->combine( map { $_->{'witness'} } @{$table->{'alignment'}} ); - push( @result, decode_utf8( $csv->string ) ); + push( @result, $csv->string ); # Make the rest of the rows foreach my $idx ( 0 .. $table->{'length'} - 1 ) { my @rowobjs = map { $_->{'tokens'}->[$idx] } @{$table->{'alignment'}}; my @row = map { $_ ? $_->{'t'}->text : $_ } @rowobjs; $csv->combine( @row ); - push( @result, decode_utf8( $csv->string ) ); + push( @result, $csv->string ); } return join( "\n", @result ); }