How to decide the problem with vbscript hex encode?

I am getting many problems with vbscript hex encode on my web. I need to fix those errors but I don’t know which code to use and how can I write that. Can anybody provide me the right code or the site where can I get it? Thank you in advance!
