CODEPAGE list and ASP application example 1th/2 Page _ Basics Tutorial

Source: Internet
Author: User
The specified code page attribute is not valid.
CodePage property: Is the code page that indicates the page
If you make a Web page script that is different from the default code page on the Web service side, you must indicate the code page:
The code is as follows:
codepage=936 Simplified Chinese GBK
codepage=950 Traditional Chinese BIG5
codepage=437 American/Canadian English
codepage=932 Japanese
codepage=949 Han Wen
codepage=866 Russian
codepage=65001 Unicode UFT-8
Use of page encoding:
Based on VBScript
VBScript
<% @LANGUAGE = "VBSCRIPT" codepage= "65001"%>
Javascript
<% @LANGUAGE = "JAVASCRIPT" codepage= "65001"%>
Here are some additional notes:
Role
Let the ASP read form submissions, databases, etc. in a specific encoding.
How to use
Join in the first line of the ASP file. Based on the different code pages, use the following code:
<%@ codepage=936%> Simplified Chinese
<%@ codepage=950%> Traditional Chinese
<%@ codepage=65001%> UTF-8
Use attention
If page A does not set codepage, the page B and C set the codepage. When you first visit page A, use the IIS default codepage, and then visit page B with the codepage specified by page B, and then when you visit page A, you still use the codepage specified by page B, and the last visit to page C, using the codepage specified by page C.
1252____ Western iso-8859-1
Except when 128-159 are used, use "Windows-1252" iso8859-1, Iso_8859-1, Iso-8859-1, ansi_x3.4-1968, iso-ir-6, ansi_x3.4-198 6, iso_646, irv:1991, iso646-us, US, IBM367, cp367, Csascii, Latin1, iso_8859-1:1987, iso-ir-100, ibm819, cp819, Windows-1 252
20105____ Us-ascii Us-acii, ASCII
28592____ European (ISO) iso-8859-2 iso8859-2, Iso-8859-2, Iso_8859-2, Latin2, iso_8859-2:1987, iso-ir-101, L2, CS ISOLatin2
1250____ European (Windows) Windows-1250 Windows-1250, x-cp1250
1251____ Cyrillic (Windows) Windows-1251 Windows-1251, x-cp1251
1253____ Greek (Windows) Windows-1253 Windows-1253
1254____ Turkish (Windows) Windows-1254 Windows-1254
932____ Japanese (shift-jis) Shift_JIS Shift_JIS, X-sjis, Ms_kanji, Csshiftjis, x-ms-cp932
51932____ Japanese (EUC) x-euc-jp Extended_unix_code_packed_format_for_japanese, Cseucpkdfmtjapanese, X-EUC-JP, X-EUC
50220____ Japanese (JIS) iso-2022-jp CSISO2022JP, ISO-2022-JP
1257____ Baltic (Windows) Windows-1257 windows-1257
950____ Traditional Chinese (BIG5) Big5 Big5, Csbig5, X-x-big5
936____ Simplified Chinese (GB2312) gb2312 gb_2312-80, iso-ir-58, Chinese, csiso58gb231280, csGB2312, gb2312
20866____ Cyrillic (Koi8-r) Koi8-r cskoi8r, Koi8-r
949____ Korean (KSC5601) ks_c_5601 ks_c_5601, ks_c_5601-1987, Korean, csKSC56011987
1255____ (logical) Hebrew (iso-logical) Windows-1255 iso-8859-8i
1255____ (visual) Hebrew (iso-visual) iso-8859-8 iso-8859-8 visual, Iso-8859-8, Iso_8859-8, visual
862____ Hebrew (DOS) dos-862 dos-862
1256____ Arabic (Windows) Windows-1256 Windows-1256
720____ Arabic (DOS) dos-720 dos-720
874____ Thai Windows-874 Windows-874
1258____ Vietnamese Windows-1258 Windows-1258
65001____ Unicode UTF-8 UTF-8 UTF-8, Unicode-1-1-utf-8, Unicode-2-0-utf-8
65000____ Unicode UTF-7 unicode-1-1-utf-7 utf-7, unicode-1-1-utf-7, Csunicode11utf7, utf-7
50225____ Korean (ISO) iso-2022-kr Iso-2022-kr, CSISO2022KR
52936____ Simplified Chinese (HZ) hz-gb-2312 hz-gb-2312
28594____ Baltic (ISO) iso-8869-4 iso_8859-4:1988, iso-ir-110, iso_8859-4, Iso-8859-4, Latin4, L4, CsISOLatin4
28585____ Cyrillic (ISO) iso_8859-5 iso_8859-5:1988, iso-ir-144, Iso_8859-5, iso-8859-5, Cyrillic, CsISOLatinCyrillic, CsISOLatin5
28597____ Greek (ISO) iso-8859-7 iso_8859-7:1987, iso-ir-126, iso_8859-7, iso-8859-7, elot_928, ECMA-118, Greek, GREEK8, C Sisolatingreek
28599____ Turkish (ISO) iso-8859-9 iso_8859-9:1989, iso-ir-148, iso_8859-9, Iso-8859-9, Latin5, L5, CsISOLatin5
related to Microsoft's ASP Help documentation:

Using International sites
One advantage of posting messages on the Internet or Intranet is that you can create an internationalized Web site that users can access from different countries or regions. Users can request a Web page that has been localized to the local language and read it using a localized version of the browser. When you build a Web site that contains multiple language pages, you need to convert the strings that are passed between the browser and the Web server or between ASP scripts and ActiveX components. For example, if a Japanese browser sends a table or query string value in an HTTP request, this string must be converted from the Japanese character set in the browser to the character set that the ASP uses to process the script. If all pages on the Web site are written with the default character set used by the Web server, the ASP will automatically convert. However, if the Web page is written in a different character set, you must use an ASP command to indicate how to convert the string. For example, if your site has both a Web page for the Japanese character set and a Web page for the Chinese character set, you must indicate the character set used by the ASP to process a particular page.
Current 1/2 page 12 Next read the full text
Related Article

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.