Thread Encoding, Umlaute, ...
(19 answers)
Opened by roli at 2015-07-10 14:04
Wenn ich folgendes Script in Notepad++ mit der Kodierung "ANSI" speichere und starte...
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 #!/usr/bin/perl use strict; use warnings; use Encode qw(decode encode_utf8); my $testtext = 'öäüÖÄÜ߀'; my $data = encode_utf8 decode "windows-1252", $testtext; open my $fh, '>', "test.txt" or die $!; print $fh $data; close($fh); ...kommt raus, was das Bild zeigt. Wichtig: UTF-8 auswählen im Lister unter "Optionen": Quelle: msg #172597 Editiert von bianca: Quelle ergänzt Anhänge Last edited: 2015-07-13 12:16:49 +0200 (CEST) 10 print "Hallo"
20 goto 10 |