Different encodings problem: What does setting Request.ContentEncoding do?

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top