Leser: 2
6 Einträge, 1 Seite |
1
2
3
4
5
6
7
use open IO => ':utf8';
use strict;
my $text = 'Umlaut Ü';
open(OUT, '>', 'test.txt') || die "test.txt:$!";
print OUT "$text\n";
close(OUT);
1
2
3
4
5
6
7
8
use UTF8BOM;
use Encode;
use strict;
my $text = 'Umlaut Ü';
open(OUT, '>', 'test.txt') || die "test.txt:$!";
print OUT UTF8BOM->insert_into_str(encode("utf8", "$text\n"));
close(OUT);
print OUT "\x{feff}$text"
6 Einträge, 1 Seite |