Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Control Characters (\xNN) in HTML

by garliqua (Novice)
on Oct 21, 2001 at 02:51 UTC ( [id://120326]=note: print w/replies, xml ) Need Help??


in reply to Re: Control Characters (\xNN) in HTML
in thread Control Characters (\xNN) in HTML

Thanks to everyone who replied. I appreciate it.

I ended up going with blackmateria's solution:

s/([\x80-\xFF])/'&#'.ord($1).';'/eg

Since it kept the scope of the substitutions neatly to just the things I wanted to replace (as opposed to tommyw's followup using [:print:], which—as I understand it from page 80 of the owl book, at least—would have performed replacements on tabs and other non-space-character whitespace as well).

Thanks again to all y'all!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-19 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found