Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Setting Locale for non-english language

by fglock (Vicar)
on Jan 31, 2005 at 14:58 UTC ( [id://426620]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://426620]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 08:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found