ASP codePage coding instructions

Source: Internet
Author: User

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.

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.