in reply to Re: Detecting Strange Characters in Text?
in thread Detecting Strange Characters in Text?

Actually I think in this case the allowable set will probably be larger. So to get rid of the 225, I can just run something like
$text =~ s/\xE1//g;
?

Replies are listed 'Best First'.
Re^3: Detecting Strange Characters in Text?
by Transient (Hermit) on Jun 16, 2005 at 17:16 UTC
    #!/usr/bin/perl use warnings; use strict; my $text = "ßeta"; print $text, "\n"; $text =~ s/\xDF//; print $text, "\n"; __OUTPUT__ ßeta eta
    Although it would be more robust to follow something similar to what jacques suggested.