This converter was originally taken from Shaun Moss's website.
His site appears to be offline so I rescued this from the google cache.
Changed some stuff too. I use this to convert the email addresses I put
on web pages to things the email harvester bots won't understand.
Unicode Characters to HTML Entities Converter
A utility to convert Unicode characters to decimal and hexadecimal HTML entities.
(by Shaun Moss, adapted from: ASCII to HEX to Unicode Converter by Mike Golding)
The partial conversions do not convert characters with a code of
127 or less, (i.e. plain old ASCII characters), which can appear in
HTML code as they are.
More about character sets.