Enable netbox to support response. charset to solve the '800a01b6 'error during Microsoft VBScript running.

Source: Internet
Author: User
Tags servervariables
Microsoft VBScript runtime error' 800a 01b6'
The object does not support this attribute or method: 'response. charset'
Netbox does not support response. charset.

Open the netbox user manual and expand it one by one:
Object Reference → response object → RESPONSE METHOD
Addheader Method
The addheader method adds the HTML title with the specified value. This method often adds a new HTTP title to the response.
Response. addheader name, Value
Name of the new title variable
Initial values stored in the new title variable
To avoid ambiguous names, the name cannot contain any underscore (_). The servervariables set interprets the underline characters in the title as a backslash. For example, the following script allows the server to search for a title named my-header.

<% Request. servervariables ("http_my_header") %>
The following example uses the addheader method to require the client to use basic verification.
<% Response. addheader "www-authenticate", "Basic" %>
Note that the preceding script only notifies the client browser of which verification is used. If you use this script in a web application, you must enable basic verification for the Web server.
Response. charset = "gb2312"
Response. addheader "Content-Type", "text/html; charset = gb2312"

In the netbox environment, Ajax uses get to get data and solves Chinese garbled characters!

Related Article

Cloud Intelligence Leading the Digital Future

Alibaba Cloud ACtivate Online Conference, Nov. 20th & 21st, 2019 (UTC+08)

Register Now >

Starter Package

SSD Cloud server and data transfer for only $2.50 a month

Get Started >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.