Mangler said:
Just wondering if anyone out there knows of a good program or script
that will convert characters to the respective html entity. All
characters, not just special.
You are not very specific in your question, and as you have seen, you will
then get unspecific answers, and you might even get flamed.
The important question, however, is why you would do this.
Let me guess... you want to obfuscate something. Why don't you just tell
what you really want, and we will tell you how to _really_ achieve that, or
why it is a stupid stupid idea, or both?
In case you have some special reason to use entity references, it would
surely be simplest to use (numeric) character references. Then the operation
becomes fairly trivial as soon as you know the context and environment in
which the program would be used and what kind(s) of input data encodings
need to be supported.
The question makes little sense in the HTML, since in HTML,
markup-significant characters _must not_ be represented as entity or
character references.