The specifiedCodeThe 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:
Copy codeThe 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.