Add Charset and ContentType to ASP.NET web page

The WC3 recommends specifying the Charset and ContentType on all of your web pages. A quick and easy way to do this in a ASP.NET web site with a master page is to add this to the masterpage file:


<%  Response.Charset = "utf-8"%> 
<%  Response.ContentType = "text/html"%> 

Comments

Popular posts from this blog

.NET generics with private accessors not compatible with MSTest

Microsoft.ApplicationBlocks. ExceptionManagement The event source x does not exist error

Page.ClientScript.RegisterStartupScript not working