To resolve this problem, use one of the following
methods. If you do not know the character set that your Web page uses, Microsoft
recommends that you change the character set that the Web page uses.
Change the character set that the Web page uses
Change the character set that the Web page uses to the character
set that the Web form uses. To do this, follow these steps:
- In the Web.config file of your ASP.NET Web Application
project, locate the <globalization> element. Note the value for the requestEncoding attribute of the <globalization> element.
- In your ASP Web page or in your HTML Web page, locate the
following code:Note PageTitle is a placeholder for the
title of your Web page.
- Add the following code after the code that you located in
the previous step.
Note In the following code, replace
CharacterSet with the value that you noted in
step 1.<meta http-equiv="Content-Type" content="text/html; charset=CharacterSet">
Change the character set that the Web form uses
Change the character set that the Web form uses to the character
set that the Web page uses. To do this, follow these steps:
- Note the character set that the Web page uses. If you
do not know the character set that the Web page uses, locate the META element for the Web page, and then note the value for the charset property of the associated CONTENT attribute.
Note The META element is an optional element. Therefore, your Web page may not
contain a META element. In such a scenario, this resolution may not resolve the
problem. - In the Web.config file of your ASP.NET Web Application
project, locate the <globalization> element.
- Change the values for the requestEncoding attribute and the responseEncoding attribute to the value that you noted in step 1. If you did
not note any value in step 1, change the values for the requestEncoding attribute and the responseEncoding attribute to typical values (such as "ISO-8859-1" and
"Windows-1252").