Saturday, August 21, 2010

I have a database with special characters, I wan't to display them on a web page and I'm using ASP, any ideas?

ASP page connected to a mySQL database. The database text fields contain some special symbols, like french and german letters, how can I get ASP to display the characters correctly?I have a database with special characters, I wan't to display them on a web page and I'm using ASP, any ideas?
Make a function that checks for special characters and replaces them with HTML friendly equivalents, before you write it out to the page.I have a database with special characters, I wan't to display them on a web page and I'm using ASP, any ideas?
Use Server.HTMLEncode(';忙酶氓';) to encode the string before Response.Write()'ing it :)

No comments:

Post a Comment