- or download this
#!/usr/bin/perl
...
print "That line is: ",$line,"\n";
$line =~ s/ö/o/;
print "That line in ascii is: $line\n";
- or download this
karoshi:~>LC_CTYPE=de_DE.UTF-8 ./u8demo.pl
I read a line, that is 1 chars long.
...
I read a line, that is 8 chars long.
That line is: \xC3\xB6
That line in ascii is: \xC3\xB6
- or download this
karoshi:~>./u8demo.pl
I read a line, that is 1 chars long.
That line is: �
That line in ascii is: o