About ASP.NET in the resonse.querystring function Chinese character parameter delivery error

xiaoxiao2021-03-06  40

The error occurred recently when dealing with the resonse.queryString function Chinese character parameter, the error in which the specific value of the parameters occurred, after analysis, found that the enconfig enconfig and the global settings were incorrect, first posted, so as not to make the same error:

1, the first line: =>

2,

This section sets the application's global setting.

->

RequestentEncoding = "UTF-8"

ResponseEncoding = "UTF-8"

/>

change to:

This section sets the application's global setting.

->

RequestentEncoding = "GB2312"

ResponseEncoding = "GB2312"

/>

It is correct when the Chinese character parameters are transferred.

转载请注明原文地址:https://www.9cbs.com/read-70560.html

New Post(0)