laziness, impatience, and hubris | |
PerlMonks |
Re: Regexp with unicode problemby Polyglot (Chaplain) |
on Feb 09, 2010 at 13:08 UTC ( [id://822187]=note: print w/replies, xml ) | Need Help?? |
As others have explained to me here previously, if you use unicode characters in your code, then you need to specify that in your uses. For example, if you are using utf8 characters within your code, you should specify "use utf8;". However, you do not need to make this declaration for characters that your code will act upon, only for those utf8 characters that are in the code itself.
For characters outside your code, you may wish to make sure that they are recognized as utf8 by perl. The following examples present some ways of doing this--though you should not need to use them all at once. These are all lines which I have used at one time or another to deal with utf8.
Blessings, ~Polyglot~
In Section
Seekers of Perl Wisdom
|
|