How to solve the problem that the Chinese in asp.net can not display correctly?
Source: Internet
Author: User
Asp.net| Solution | problem | show | Chinese often appear asp.net can't show Chinese phenomenon, how to solve this kind of depressed small problem? There are several solutions you can try:
The first approach:
Add the <%@ CODEPAGE = "936"%> statement to the beginning of each page. For example:
First, create a file config.web, which reads as follows:
<configuration>
<
Globalization
Requestencoding= "Utf-8"
Responseencoding= "Utf-8"
/>
</configuration>
Then put it in the Web directory and it's OK.
The third option:
Find Winnt/complus/[version]/config.web This file, note that [version] refers to the NGWS version number, such as: winnt/complus/1812.9/ Config.web, we then open the file in Notepad and find the following lines:
<globalization
Requestencoding= "Us-ascii"
Responseencoding= "Iso-8859-1"
/>
See if I can help you solve these little problems.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service