P
Per Bolmstedt
In my web.config, the default requestEncoding is set to X. However, I have
a web form to which I know that Y encoded data will sometimes be POSTed.
This data will be garbled when accessed through Request.Form because ASP.NET
regards it as X encoded and not Y encoded. I thought manually setting
Request.ContentEncoding to Y in, say, the Page_Load event would reinterpret
the data as being Y encoded. Setting Request.ContentEncoding, however,
appears to have no effect.
What is the appropriate solution for my problem? Certainly not converting
from X to Y using Encoding specific conversion methods, I hope?
a web form to which I know that Y encoded data will sometimes be POSTed.
This data will be garbled when accessed through Request.Form because ASP.NET
regards it as X encoded and not Y encoded. I thought manually setting
Request.ContentEncoding to Y in, say, the Page_Load event would reinterpret
the data as being Y encoded. Setting Request.ContentEncoding, however,
appears to have no effect.
What is the appropriate solution for my problem? Certainly not converting
from X to Y using Encoding specific conversion methods, I hope?