in reply to What's the 'M-' characters and how to filter/correct them?
Your data is not ASCII.
From the documentation for cat on my system:
-v Non-ASCII characters (with the high bit set) are printed as `M-' (for meta) followed by the character for the low 7 bits.
Edit: That's all, really. The below advice may not be needed as your only symptom seems to be that cat -v on your system doesn't display the characters correctly, as documented.
You should decode the data, or try adding at the top of the script:
binmode STDIN, ':utf8';
See Encode, as well as perlunitut and perluniintro.
update: added links to docs
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What's the 'M-' characters and how to filter/correct them?
by shmem (Chancellor) on Jan 19, 2016 at 10:13 UTC | |
by 1nickt (Canon) on Jan 19, 2016 at 10:34 UTC | |
|
Re^2: What's the 'M-' characters and how to filter/correct them?
by sylph001 (Sexton) on Jan 19, 2016 at 09:23 UTC | |
by 1nickt (Canon) on Jan 19, 2016 at 09:30 UTC | |
by sylph001 (Sexton) on Jan 20, 2016 at 09:54 UTC | |
by shmem (Chancellor) on Jan 20, 2016 at 10:17 UTC | |
by sylph001 (Sexton) on Jan 20, 2016 at 15:02 UTC | |
|