Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Upper Ascii characters

by alfie (Pilgrim)
on Apr 03, 2001 at 10:49 UTC ( #69222=note: print w/replies, xml ) Need Help??

in reply to Upper Ascii characters

Just to make it clear - those characters aren't ASCII. ASCII are only those that have the 8th bit set to 0.

That said, a converting routine will be quite tricky - for it completely depends on the locale you are using. Different characters have different codes in the different charsets. You will have to take locale into account. Then you can at least convert them to lowercase:

use locale; $foo = ""; print lc($foo)."\n";
This put's them just to lowercase - it doesn't convert them to ASCII characters. That is a thing I wouldn't do - the characters are different on purpose. They mean different things, so I might question your reason.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2022-05-19 15:06 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (71 votes). Check out past polls.