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

Re: questions about character encoding

by mirod (Canon)
on Jul 10, 2002 at 23:24 UTC ( #180909=note: print w/ replies, xml ) Need Help??


in reply to questions about character encoding

The problem is that when you write $string =~ s/[אבגדהו]/a/; the accented characters are in Mac encoding, not in UTF-8.So they never match in the string.

You should be able to fix this problem using Unicode::Map8 or maybe, I am not (yet!) familiar with it, Encode, which will be part of the core in 5.8.0.

--
The Error Message is GOD - MJD


Comment on Re: questions about character encoding
Download Code
Replies are listed 'Best First'.
Re: Re: questions about character encoding
by moof1138 (Curate) on Jul 11, 2002 at 01:59 UTC
    Cool, many thanks. Unicode::Map8 looks like it is just what I am looking for to get everything in the same character encoding.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2015-07-29 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls