Thread Best practice UTF-8 Output (35 answers)
Opened by bianca at 2013-11-29 07:03

pq
 2013-12-15 11:58
#172597 #172597
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
meine güte, wo ist denn jetzt genau das problem?
Code (perl): (dl )
1
2
3
my $data = encode_utf8 decode "windows-1252", $testtext;
open my $fh, ">", "bla.txt" or die $!;
print $fh $data;

Last edited: 2013-12-15 12:01:01 +0100 (CET)
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Best practice UTF-8 Output