How can I set the request encoding of a webform?

  • Thread starter Thread starter Wootaek Choi
  • Start date Start date
W

Wootaek Choi

Hi everybody.

I have a webapplication
that use UTF-8 for request & response encoding.

but.. One aspx page should get request
with other encoding(ks_c_5601-1987),
and response with utf-8 ( This page call by other systems. )

without changing web.config,
How can I set the request encoding?
 
I am not sure this is correct I have only set the response encoding like
this, but assume this should work for both....

Request.ContentEncoding =
System.Text.Encoding.GetEncoding("ks_c_5601-1987");
Response.ContentEncoding = System.Text.Encoding.UTF8;


Matt Howeson
http://www.3internet.com
 
Thank you for your help.
I tried that way, but just other wrong result comes out.
Manipulating web.config for request encoding work well...
 
Back
Top