sub fld2str {
my ($func,$row,$f,$sf,$i) = @_;
#print STDERR "## in fld2str\n";
- my $tmp = &$func($row,$f,$sf,$i) || '';
+ my $tmp = $codepage->convert(&$func($row,$f,$sf,$i)) || '';
return "'$tmp'";
}
} elsif ($format =~ s/^([^A-Z\|]+)(\|[A-Z]{1,2}\|)/$2/) {
$prefix .= $1 if ($display);
} else {
- print STDERR "unparsed format: $format\n";
+ #print STDERR "unparsed format: $format\n";
$prefix .= $format;
$format = "";
}