Display correctly or replace accented characters in ASP


If accented characters appear as strange symbols on screen, you may need to remove the accents, or of course even better to convert them so that they appear as intended.

To remove the accents use the replace function

Replace(YourString,"é","e")

To convert them, use the Server.HTMLEncode method

Server.HTMLEncode(YourString)

Enjoy!

Leave a comment