Thanks for the replies.
I guess the problem I have is understanding exactly what it is I'm trying to search for and replace.
The context of this is not quite as simple as parsing html files. The text replacement is actually done by the apache module mod_publisher; my perl script is a mod_rewrite rewritemap script which creates the mod_publisher replacement rules dynamically.
The problem I'm trying to solve is when webpages contain illegal MS Windows characters - I need to replace then with valid HTML chars. The "bad" chars work OK in browsers if the correct font is installed, but when proxying everything through mod_publisher, all content gets converted to utf8 format and the chars don't show up right in the proxied page.
The only way I've got this to work so far is by pasting in the binary character I want to replace.
I guess I'll just leave things as they are for now. Thanks, R.
--
Robin Bowes | http://robinbowes.com
In reply to Re^2: Representing "binary" character in code?
by robinbowes
in thread Representing "binary" character in code?
by robinbowes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |