I am looking for an alternative to server.htmlencode and server.urlencode. I am building a component(vb6) to print a table from a query. I need to encode data for html but I don't think that it is good for me set a reference to the asp.server object just to html encode something. Can anyone tell me an alternative function or exactly what html charachters are not displayed properly. I will also need to know a similar solution to server.urlencode. I don't think that writing my own subs to do this should be very hard. Anyone tried before?