The meaning of analytic codepage and CharSet and its application

Source: Internet
Author: User

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 ">

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.