in reply to Getting rid of non-standard ASCII characters
Transliterate: tr/\0-\037\177-\377//d; Btw, all characters less than 128 are ASCII, you wanted to eliminate control characters - which includes newline, carriage return and tab. 'Printable ASCII' describes what you want to keep.
Update: Ionizor, you're wrong. There are lots of extended 8-bit character sets and ms code pages, but none are ASCII, which is 7-bit.
Update2: pg, it compiles for me, but I did err in placing leading zeros in the escaped octals, to make more than three octal digits. Repaired, and thanks.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting rid of non-standard ASCII characters
by Ionizor (Pilgrim) on Dec 19, 2002 at 02:29 UTC | |
|
Re: Re: Getting rid of non-standard ASCII characters
by pg (Canon) on Dec 19, 2002 at 02:47 UTC |