Wednesday, July 15, 2009

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?
Use Server.HTMLEncode("æøå") to encode the string before Response.Write()'ing it :)
Reply:Make a function that checks for special characters and replaces them with HTML friendly equivalents, before you write it out to the page.


No comments:

Post a Comment