Thread Zeichensätze UTF-8 -> Latin-1 konvertieren (21 answers)
Opened by Glasperlenspieler at 2011-01-04 09:53

GwenDragon
 2011-01-04 15:09
#144037 #144037
User since
2005-01-17
14747 Artikel
Admin1
[Homepage]
user image
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

View full thread Zeichensätze UTF-8 -> Latin-1 konvertieren