Home  >  Article  >  Web Front-end  >  CODEPAGE list and asp application example_Basic tutorial

CODEPAGE list and asp application example_Basic tutorial

PHP中文网
PHP中文网Original
2016-05-16 12:04:501847browse

ASP also provides commands that support cultural conventions in different regions, such as currency, time, and date formats. As with the string conversion command, use the locale command if your script does not use the web server's default locale.

The specified code page attribute is invalid.
codepage attribute: indicates the code page of the web page
If the web script produced is different from the default code page of the WEB server, the code page must be specified:
The code is as follows:
codepage= 936 Simplified Chinese GBK
codepage=950 Traditional Chinese BIG5
codepage=437 United States/Canada English
codepage=932 Japanese
codepage=949 Korean
codepage=866 Russian
codepage=65001 unicode UFT-8
Use of page encoding:
Based on vbscript
vbscript

javascript

The following are some additional instructions:
Function
Let ASP read in a specific encoding Get form submissions, databases, etc.
How to use
Add it in the first line of the ASP file. Depending on the code page, use the following code:
Simplified Chinese
Traditional Chinese
UTF-8
Usage Notes
If web page A does not have codepage set, but web pages B and C have codepage set. When you visit web page A first, use the IIS default codepage; when you visit web page B again, use the codepage specified by web page B; when you visit web page A again, still use the codepage specified by web page B; finally visit web page C, use the codepage specified by web page C. .
1252____ Western iso-8859-1
except 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____ 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_5 601-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) two-720 two-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-EN ISO-2022-EN, csISO2022-EN
52936____ 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, csISOLatinGreek
28599____ Turkish (ISO ) iso-8859-9 ISO_8859-9:1989, iso-ir-148, ISO_8859-9, ISO-8859-9, latin5, l5, csISOLatin5 /strong>

One of the most expensive infrastructures
In the Internet based Intranet is a very simple way to create a specific environment家(地区) is a popular Web site Even if you have a snowflake covered with a snowflake, you can build a snowflake and a snowflake Default Web browsers, free downloads and applications for Web applications and ASP applications for ActiveX applications If you want to install a specific HTTP interface, you can use the HTTP interface to create an easy-to-use environment The best way to build an ASP application is to create a simple web application Latest web browser applications can be used to create a web browser, such as ASP graphic design applications, which are free If you want to have a snowflake, you can use the ASP for a snowflake Make sure you have a slightly less expensive snowflake, and you can get a snowflake snowflake, and you can use the ASP snowflake snowflakes

ASP doesn't have a specific user interface Of course, it's worth it and it's a great way to get the most out of your website, it's the best way to buy a web site Additionally, you need to take a look at the specifics
One of the most expensive ingredients, which is the best way to get rid of the snowflakes (the snowflakes and the snowflakes). Even if you have a strong snowflake, you can have a snowball fight Cost, price, 932 license plates, 950 license plates

Active Server Pages and the ActiveX scripting engine internally use Unicode, a 16-bit fixed-length character encoding standard. If you write all pages that use the Web server's default code page, ASP automatically converts the strings. If your script does not use the Web server's default code page, you should indicate the code page used so that strings are converted correctly when passed between ASP and the script engine. Additionally, you can specify the code page for strings passed between the browser and script, or between ActiveX components and script.

To specify a code page for an ASP page, use the CODEPAGE directive. For example, to set the Japanese code page, use the following command:
When ASP processes the content and scripts of this page, it will use the code page you specify to determine how to convert the content in the script. Characters are converted from your script's character set to Unicode. For example, a value representing the letter "a" in ANSI will be converted to a different value representing the letter "a" in Unicode.

Active Server Pages assumes that the code page of strings passed between the server and the browser or between a script and an ActiveX component is the same as the code page you set for the script. To specify a different code page, you can set the Session.CodePage property, overriding the CODEPAGE setting. For example, you write scripts using JIS, but respond to clients that use UTF-8 (JIS and UTF-8 are two different character encodings of the standard Japanese character set). Session.CodePage defaults to the value of the CODEPAGE directive; setting this property overrides the current CODEPAGE setting. For example, to change the code page to Traditional Chinese, you can use the following command:


If you only temporarily change the code page of some scripts, here Be sure to set Session.CodePage to its original value afterwards. The following script shows how to temporarily change the code page:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn