Object does not 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.
<% Request.ServerVariables ("Http_my_header")%>
Example
The following example uses the AddHeader method to require the client to use BASIC authentication.
<% Response.AddHeader "Www-authenticate", "BASIC"%>
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.