How does it fail to work for you?
In reply to Re: Troubleshooting a character reference converter script by Corion in thread Troubleshooting a character reference converter script by elef