Reputation: 31
Using asp.net pages with master page and getting error:
The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the file needs to be declared in the transfer protocol or file needs to use a byte order mark as an encoding signature
If master page is not apply on the content page then page working fine. Please provide some solution for this issue.
Upvotes: 0
Views: 1328
Reputation: 176956
Check : How to: Select an Encoding for ASP.NET Web Page Globalization
you need to specify the encoding for the all page like this
<configuration>
<system.web>
<globalization
fileEncoding="utf-8"
requestEncoding="utf-8"
responseEncoding="utf-8"
culture="en-US"
uiCulture="de-DE"
/>
</system.web>
</configuration>
or
for the page
<%@ Page RequestEncoding="utf-8" ResponseEncoding="utf-8" %>
Upvotes: 3