in reply to matching UTF8 chars with regex
"use encoding" is broken in several ways, and there will not be a fix soon. Stop using it if you can. And I'm quite sure that you can.
If your source code is UTF-8 encoded, tell Perl by adding "use utf8;". If your input and output must be UTF-8 encoded, tell Perl by adding "binmode STDIN, ':encoding(UTF-8)'; binmode STDOUT, ':encoding(UTF-8)';".
Just don't "use encoding", please.
If you remove "use encoding 'utf8';" and add "use utf8;" in its place, your problem is gone.
|
|---|