in reply to Re^3: What's the 'M-' characters and how to filter/correct them?
in thread What's the 'M-' characters and how to filter/correct them?
Thank you for the explaination.
I think I'm able to get my script recognize the non-ascii characters out of the pieces of data.
However when I'm trying to remove/replace the non-ascii characters using the regex, it result still shows some unexpected characters (wrapped in point brackets) left in the position. Examples like following:
25 $line =~ s/[^:ascii]//g;
26 print $out_hdl "$line";
Result:
11AM<A0> LONDON
Dep<F3>sito Centralizado
This seems not like what I saw from the various examples on internet.
So, do you have ideas what's left there, and how could it be fully removed by this kind of regex?
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: What's the 'M-' characters and how to filter/correct them?
by shmem (Chancellor) on Jan 20, 2016 at 10:17 UTC | |
by sylph001 (Sexton) on Jan 20, 2016 at 15:02 UTC | |
by shmem (Chancellor) on Jan 21, 2016 at 15:28 UTC | |
by Anonymous Monk on Jan 20, 2016 at 22:01 UTC | |
by sylph001 (Sexton) on Jan 21, 2016 at 09:25 UTC | |
by AnomalousMonk (Archbishop) on Jan 21, 2016 at 20:05 UTC |