Re: can I use perl substitution to handle hex chars?

2006-12-12 Thread John Levine
> Seems like lots of files I get off the net use \x80\x98 or the > like to denote various non-ascii characters. Is there a way to > use perl (or any other unix tool) to replace > \x\x with, say whatever ASCII or ISO-8859-1 > character or characters? perl -pe 's/\\x(\

can I use perl substitution to handle hex chars?

2006-12-11 Thread Gary Kline
To the tool wizards out there, Seems like lots of files I get off the net use \x80\x98 or the like to denote various non-ascii characters. Is there a way to use perl (or any other unix tool) to replace \x\x with, say whatever ASCII or ISO-8859-1 ch