Re: [FR/EN] how to convert the characters ASCII(0-255) to ASCII(0-127)
- From: "Paul Lalli" <mritty@xxxxxxxxx>
- Date: 29 Dec 2005 07:39:10 -0800
Alextophi wrote:
> I cannot convert the characters of the log "C:\WINDOWS\SchedLgU.Txt",
> it is extend ASCII (OEM) (0-255)
>
> - which is the method to convert towards ASCII (0-127)?
That depends entirely on what you mean by "convert". What,
specifically, are the conversions you want to make? If you simply want
to remove all the non-ASCII characters from the file, try something
like:
perl -pi.bkp -e's/[^[:ascii:]]//g' C:\WINDOWS\SchedLgU.Txt
If you're looking for more complex than that, you're going to have to
be more explicit. What specific characters in the 128-255 range should
become what specific characters in the 0-127 range?
Paul Lalli
.
- Follow-Ups:
- Re: how to convert the characters ASCII(0-255) to ASCII(0-127)
- From: Alextophi
- Re: how to convert the characters ASCII(0-255) to ASCII(0-127)
- References:
- Prev by Date: [FR/EN] how to convert the characters ASCII(0-255) to ASCII(0-127)
- Next by Date: Re: Modifying Array inside While statement
- Previous by thread: [FR/EN] how to convert the characters ASCII(0-255) to ASCII(0-127)
- Next by thread: Re: how to convert the characters ASCII(0-255) to ASCII(0-127)
- Index(es):
Relevant Pages
|