in reply to Re^2: matching unicode blocks with regular expressions
in thread matching unicode blocks with regular expressions
Did you try doing the open like this?
You should also be setting the utf8 IO layer on your output file handle too:open( READ, "<:utf8", "test.txt" );
I gather that your "resulting text" should have been different from the input text, but wasn't. This would be expected if your regex substitutions are based on unicode classes, but perl doesn't know that the strings are perl-internal utf8 unicode.binmode STDOUT, ":utf8";
|
|---|