Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: convert tags to punctuation

by Fletch (Chancellor)
on Jan 13, 2021 at 04:08 UTC ( #11126829=note: print w/replies, xml ) Need Help??

in reply to convert tags to punctuation

Those sound like the hex values used for old Microsoft "Smart" quotes where it tries to helpfully replace correct ASCII punctuation with what winds up being unreadable on other platforms. There's ancient code from 2003 that should still work, or you can work out what the correct corresponding character would be and fix just the things you're seeing (e.g. s/\x91/`/g I'm guessing) and run some variation of perl -i.bak -pE 's/...//' input.txt over your file(s).

Edit: Just to be clear, it sounded like whatever you're viewing files with is displaying the non-ASCII character's hex values in angle brackets. If you've literally got four characters "< 9 2 >" then you'd want the above advice.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11126829]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2021-04-15 01:06 GMT
Find Nodes?
    Voting Booth?

    No recent polls found