Method 1:
After reading the Microsoft ngws document, I found that the FAQ section of the document mentioned that I want to add a config. Web file to the web directory. I tried it and the Chinese display was OK.
The method is as follows:
Create a config. Web file with the following content in the web directory:
<Configuration>
<Globalization
Requestencoding = "UTF-8"
Responseencoding = "UTF-8"
/>
</Configuration>
Later, I saw a post in the Forum saying that it would be okay to change UTF-8 to gb2312. I have not tried it. You can try it.
Method 2:
Later, I subscribed to Microsoft's newsgroup. I found a topic discussed in Microsoft's newsgroup DOTNET. Framework. aspplus. General.ArticleThe method is to add <% @ codePage = "936" %> to the beginning of each page, which is somewhat similar to <% @ page contenttype = "text/html; charset = gb2312 "%> hurry up and test,