in reply to lowercasing accented characters
The question I have now however is why I need to set the locale in one case (the script above) but not the other (the second script that reads from stdin in my first post).use strict; use warnings; use locale; use POSIX qw(locale_h); + binmode( STDOUT, ":utf8" ); + setlocale(LC_CTYPE, "german"); + my $accented_char = "\x{00dc}"; #Upper case U with DIAERESIS print "accented char=$accented_char\n"; + my $lowercased = lc( $accented_char ); + print "lowercased=$lowercased\n";
|
|---|