Thread Text::Table::Tiny
(18 answers)
Opened by geloescht at 2012-09-20 18:20
Erst von UTF-8 in die Perl interne Kodierung und dann zurück nach UTF-8.
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 use strict; use warnings; use Encode; binmode STDOUT, ":encoding(UTF-8)"; # ... my $rows=[]; push @$rows, [qw(kdnummer kddatum kdfirma kdstrasse kdhausnummer kdplz kdort kdland kdansprechpartner kdtelefon kdfax kdemail)]; while(my @row = $sth->fetchrow_array) { @row=map{decode("UTF-8", $_)}@row; push @$rows, [@row]; } print Text::Table::Tiny::table(rows => $rows, header_row => 1); print " \n"; |