in reply to Setting Locale for non-english language

Oi andre_br - isso aqui funcionou para mim no Debian (en: Hi andre_br, this works in Debian):

$ perl -v This is perl, v5.8.4 built for i386-linux-thread-multi $ perl -MEncode -e ' my $n = "ANDRÉ"; my $utf8 = decode( "iso-8859-1", + $n ); print $utf8, " ", lc( $utf8 ); ' ANDRÉ andré

Replies are listed 'Best First'.
Still Doubts
by Andre_br (Pilgrim) on Jan 31, 2005 at 22:29 UTC
    Hello lidden, sh1tn and fglock!

    Lidden, I swear I looked into perldoc, but I really can´t find the information clearly explained. Can´t find the key descriptions of the standards.

    Sh1tn, does 'Bulgarian_Bulgaria.1251' work for accent languages or you gave it just as an example of the syntax?

    Hey fglock! Nice to hear from other brazilian perlmonk! (Where are you located?) Thanks for the tip, but I see that you´re using a command line solution. But I really need a scripting one. You know about this?

    André

      Just change it to:

      use Encode; my $n = "ANDRÉ"; my $utf8 = decode( "iso-8859-1", $n ); print $utf8, " ", lc( $utf8 );

      Where are you located?

      Here. See Brasil-PM for our site. We have a very active mailing list.