Thread Zeichensätze UTF-8 -> Latin-1 konvertieren
(21 answers)
Opened by Glasperlenspieler at 2011-01-04 09:53
Konvertierprogramm conv.pl:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 #!/usr/bin/perl use strict; use warnings; use Encode qw/from_to/; my $DEBUG = 0; while (<>) { print STDERR "Original: $_" if $DEBUG; from_to($_,"utf8","latin1"); print; } Aufzurufen (Beispiel): conv.pl < UTF8.txt > Latin1.txt |