Christoph Schnauß: (und PERL) unerwartete Validator-Meldung

Beitrag lesen

guten Abend ;-)

Bei einer (lokalen) Seite, die ich durch den Validator gejagt habe, bekomme ich  plötzlich die mir bisher unbekannte Mitteilung:
"Sorry, I am unable to validate this document because on lines 22, 25, 28 it contained one or more bytes that I cannot interpret as us-ascii (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication."

Diese "angemeckerten" Zeilen enthalten deutsche Umlaute  -  ä und ü.

Das Problem ist, daß es sich um ein "generiertes Dokument" handelt (siehe mein Thread [pref:t=49615&m=271203]. Ich bin eigentlich froh, daß ich mein PERL-Script dazu bringen konnte, überhaupt die Umlaute zu schreiben. Für die Darstellung der Umlaute gibt es diese RegExpressions:

$text =~ s/ä/ä/g;
      $text =~ s/ö/ö/g;
      $text =~ s/ü/ü/g;
      $text =~ s/ß/ß/g;

Muß ich jetzt anstelle von "&szlig" für "ß" die Schreibweise ß noch einbauen?

Grüße aus Berlin

Christoph S.