Serving XHTML With Classic ASP
Join the DZone community and get the full member experience.Join For Free
How to correctly serve XHTML with Classic ASP:
If InStr(Request.ServerVariables("HTTP_ACCEPT"), "application/xhtml+xml") > 0 Then Response.ContentType = "application/xhtml+xml" Else Response.ContentType = "text/html" End If Response.Charset = "utf-8"
Opinions expressed by DZone contributors are their own.