gwene has asked for the wisdom of the Perl Monks concerning the following question:
I get bizarre characters Like a strange †instead of a dash. So I thought that it may have to do with encoding, but wan't too worried if it's just an occasional weird character popping up. But then my regexp code itself seemed hay-wire -- matching things it shouldn't.
I am very good at regexp language (the main stay of my toolset :) But I am so confused about encoding. I've tried different parameters at the end of my regexp statements, like /u or /a or /d And I've triedAnd for my filehandles:use utf8; use Encode;
binmode(FILE, ":utf8");
Can you please help? I believe my ignorance when it comes to encoding is getting in the way. I simply want my regexp to work the way it used to on a Windows box. If it means I can only use ascii, that's fine with me. I just need to know how :)
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regexp and Linux (is it utf issue?)
by aitap (Curate) on Jun 28, 2013 at 06:21 UTC |