Many friends may not be aware of this problem, but if your site often appear inexplicably garbled, then you should take a good look at this topic.
CodePage, Chinese translation is "Inside Code table" or "code page", its complete introduction can refer to the link below
Http://zh.wikipedia.org/wiki/%E4%BB%A3%E7%A0%81%E9%A1%B5
Simply put, this is a table that the program uses to encode characters. The code page is a server thing, or something that is a program. is not related to the client.
Common three kinds of codepage we need to know.
Simplified Chinese: 936
Traditional Chinese: 950
UTF-8:65001
When we write an ASP program, we usually need to explicitly specify codepage, roughly the following syntax
<%@ codepage=936%> Simplified Chinese
<%@ codepage=950%> Traditional Chinese
<%@ codepage=65001%>utf-8
This actually specifies that the characters for the current page are encoded according to a specific code page
These codes may not have been contacted by some of the younger friends. After all, in asp.net, you don't usually need to set up.
<%@ Page language= "C #" autoeventwireup= "true" codebehind= "Default.aspx.cs" inherits= "Webapplication1._"
Default "%>
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0
transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd ">