ASP Response.Charset how to solve?

Source: Internet
Author: User
Tags error code

Microsoft VBScript Runtime Error 800A01B6

Object doesnt support this property or Method:Response.Charset

Check for error code:

Response.Charset = "GB2312"

This line of code is mainly to solve the Ajax using get data, Chinese garbled problem.

After this line of code was deleted, Netbox normal operation, but the Chinese data returned by Ajax became garbled.

Description Netbox does not support Response.Charset.

Open the Netbox manual and expand in sequence:

Object reference →response Object →response method

AddHeader method

The AddHeader method adds an HTML caption with the specified value. This method often adds a new HTTP header to the response

Grammar

Response.AddHeader Name, value

Parameters

Name

The name of the new title variable

Value

The initial value stored in the new header variable

Comments

To avoid naming ambiguous, name cannot contain any underscore characters (_). The ServerVariables collection interprets the underscore character in the title as a backslash. For example, the following script causes the server to find a header name named My-header.

Example

The following example uses the AddHeader method to require the client to use BASIC authentication.

Note the previous script notifies only the client browser which authentication is used. If you use this script in a Web application, be sure to enable BASIC authentication for the Web server.

So will

Response.Charset = "GB2312"

Replace with:

Response.AddHeader "Content-type", "text/html"; charset=gb2312 "

Netbox environment Ajax with get data, Chinese garbled problem solving!

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.