Re: [FR/EN] how to convert the characters ASCII(0-255) to ASCII(0-127)



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

.



Relevant Pages

  • [FR/EN] how to convert the characters ASCII(0-255) to ASCII(0-127)
    ... I cannot convert the characters of the log "C:\WINDOWS\SchedLgU.Txt", ... it is extend ASCII (OEM) ... Prev by Date: ...
    (comp.lang.perl.misc)
  • Re: XP Serial Number Questions
    ... That was my original thinking too but now that you have corroborated my ... how can I ever be sure that the key for the OEM Win XP I ... So you have 2 groups of characters. ... >> might be a installation CD batch number. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: XP Serial Number Questions
    ... OEM version as I managed to register and activate it with no problem. ... > It's hard enough to read the number when you're installing it, ... So you have 2 groups of characters. ... group might be a installation CD batch number. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: missing product id
    ... characters is OEM however. ... It works for some of MSs earlier versions of ... Wayne ...
    (microsoft.public.office.setup)
  • Re: Windows xp pro oem code is not recognized on install
    ... If the OEM version came pre-installed, the sticker with the product code ... Are you sure you are entering the right characters for the product id? ... you entering a zero instead of an oh, a 5 instead of S, a G ...
    (microsoft.public.windowsxp.newusers)