Sixtease has asked for the wisdom of the Perl Monks concerning the following question:
What does this mean? Is there a way to get it working?use strict; use warnings; use encoding 'utf8'; use Encode; my $raw = encode('cp1250', 'í'); my $letter = decode('cp1250', $raw); if ($letter eq 'í') { print "yes\n" } else { print "no\n" } if ($letter =~ /í/) { print "yes\n" } else { print "no\n" } __OUTPUT__ yes no
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: matching UTF8 chars with regex
by AltBlue (Chaplain) on May 19, 2007 at 02:37 UTC | |
by Sixtease (Friar) on May 19, 2007 at 02:54 UTC | |
|
Re: matching UTF8 chars with regex
by Joost (Canon) on May 19, 2007 at 01:29 UTC | |
|
Re: matching UTF8 chars with regex
by Juerd (Abbot) on Jun 13, 2007 at 19:54 UTC |