![]() |
|< 1 2 >| | ![]() |
18 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/perl -w
#
use strict;
my @html = ("ö - ü - ä - ß - Ö - Ü - Ä");
foreach (@html) {
convert_umlaut($_);
}
# convert_umlaut:
#
sub convert_umlaut {
my $temp = shift;
print "Vorher: $temp\n";
$temp =~ s/ö/ö/g;
$temp =~ s/ü/ü/g;
$temp =~ s/ä/ä/g;
$temp =~ s/ß/ß/g;
$temp =~ s/Ö/Ö/g;
$temp =~ s/Ü/Ü/g;
$temp =~ s/Ä/Ä/g;
print "Nacher: $temp\n";
}
<STDIN>;
1 2 3 4 5
my @html; open IN, "test.pl" or die; @html = <IN>; chomp @html; close IN;
1
2
3
use HTML::Entities;
$test = "äöüÄÖÜß\x{20ac}"; # Umlaute und Euro-Zeichen
print HTML::Entities::encode_entities_numeric($test, "\x{7f}-\x{fffd}"), "\n";
![]() |
|< 1 2 >| | ![]() |
18 Einträge, 2 Seiten |