Re: how to convert the characters ASCII(0-255) to ASCII(0-127)



Alextophi wrote:
> EXAMPLE:
>
> the log "C:\WINDOWS\SchedLgU.Txt", contains wide ASCII characters

There is no such thing as "wide ASCII".

> (ex:
> "tâche" or "système"),
>
> $LINE = ~ tr/\x8A/\x65 /; # remplace ... è > e
> $LINE = ~ tr/\x83/\x61 /; # remplace ... â > a
>
> - how to replace all the ASCII characters?

Did you mean to say "replace all the non-ASCII with ASCII characters?"
You don't want to do that. Or do you really mean to rename Ms. Höra ("to
hear") into Ms. Hora ("whore") or Österreich ("Austria") into Osterreich
("Easter Empire")?

jue
(who does not take kindly to his name being bastardized)


.


Quantcast