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:
Copy Code code 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.