The specified Code The page feature is invalid.
CodePage attribute: indicates the webpage code page.
If the webpage script is different from the default code page of the web server, you must specify the code page:
The Code is as follows:
CodePage = 936 Simplified Chinese GBK
CodePage = 950 traditional Chinese big5
CodePage = 437 US/Canada English
CodePage = 932 Japanese
CodePage = 949 Korean
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" %>
Below are some additional instructions:
Function
Allows ASP to read form submissions and databases with specific codes.
Usage
Add it to the first line of the ASP file. Use the following code based on different code pages:
<% @ CodePage = 936%> Simplified Chinese
<% @ CodePage = 950%> traditional Chinese
<% @ CodePage = 65001%> UTF-8
Usage notes
If codePage is not set for webpage A, and codePage is set for webpage B and C. When accessing webpage A, use the default IIS codePage; when accessing webpage B, use the codePage specified by webpage B; when accessing webpage A, use the codePage specified by webpage B; finally, access page C and use the codePage specified by Page C.
1252 ____ Western iso-8859-1
When t when 128-159 is used, use "Windows-1252" iso8859-1, iso_8859-1, iso-8859-1, ANSI_X3.4-1968, iso-ir-6, ANSI_X3.4-1986, iso_646, Irv: 1991, ISO646-US, US, ibm367, cp367, csascii, Latin1, iso_8859-1: 1987, iso-ir-100, ibm819, cp819, Windows-1252
20105 ____ US-ascii us-acii, ASCII
28592 ____ Central European (ISO) iso-8859-2 iso8859-2, iso-8859-2, iso_8859-2, latin2, iso_8859-2: 1987, iso-ir-101, L2, csisolatin2
1250 ____ Central 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 ____ japan ese (shift-JIS) shift_jis, X-sjis, ms_kanji, csshiftjis, x-ms-cp932
51932 ____ japan ese (EUC) x-EUC-JP extended_unix_code_packed_format_for_japanese, cseucpkdfmtjapanese, X-EUC-JP, X-EUC
50220 ____ japan ese (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, latin4, L4, csisolatin4
28585 ____ Cyrillic (ISO) iso_8859-5: 1988, ISO_8859-5, iso-ir-144, ISO_8859-5, Cyrillic, csisolatincyrillic, csisolatin5
28597 ____ Greek (ISO) iso-8859-7: 1987, ISO_8859-7, iso-ir-126, ISO_8859-7, elot_928, ISO-8859-7, Greek, greek8, csisolatingreek
28599 ____ Turkish (ISO) iso-8859-9: 1989, ISO_8859-9, iso-ir-148, ISO_8859-9, latin5, L5, csisolatin5
Content of Microsoft ASP help document:
Use international sites
One advantage of Publishing messages over the Internet or Intranet is that you can create an international web site that users can access from different countries (regions. You can apply for a webpage that has been localized to a local language and read it using the localized version of your browser. When creating a web site that contains web pages of multiple languages, you need to convert the strings transmitted 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, the string must be converted from the Japanese character set of the browser to the character set ASP is used to process the script. If all pages on the web site are written using the default character set used by the Web server, ASP will automatically convert. However, if a webpage is written in another character set, you must use the ASP command to specify how to convert the string. For example, if your website contains both Japanese and Chinese character sets, you must specify the character set used by ASP to process a specific page.