Do you find that your site is refreshed again when there are garbled? Okay, here's what we can say about the solution ... First of all, the first question, the problem is just beginning to let oneself baffled ah, the problem of the headache but found that it is a coincidence, because just started to configure the iis7.5 when the direct installation of ASP.net Although not understand this knowledge, But still found the ASP.net configuration process will be in the Web root directory to generate a so-called web.config, at that time feel this file strange then directly deleted, and then run their own ASP file found that the problem of the conversion of the ODBC connection error, but still a lot of garbled. All right, cut the crap, and then solve the second problem. The second problem is because it is an ASP error 500-100 encoding problem, the solution is as follows:
1, copy C:\inetpub\custerr\zh-CN\500-100.asp files to your site folder; Maybe some people will think why not directly modify it, because there are certain permissions issues of course, you can also think of ways to get permission to directly modify
2. Modify this file to Utf-8 code:
A. <%@ language= "VBScript" > Modified to <%@ language= "VBScript" @codepage =65001%>
B. Option Explicit followed by a line response.charset= "Utf-8"
C. <meta http-equiv= "Content-type content=" text/html; charset=gb2312 "> Modified to <meta http-equiv=" Content-type "content=" text/html; Charset=utf-8 ">
D. Add session.codepage = 65001 after bakcodepage = Session.CodePage (of course it can be any location, not the first line)
3. Configure IIS7.5
A. Open IIS7, select the site you created, double-click the "error page" icon in the right window, and select "Add ..." under the Right property window.
B. Add custom error page window, status code "500.100", select "Execute URL on this site", URL address "./500-100.asp"
4. After the determination, such site display error message will be described in detail, there will be no errors.
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.