Groups | Blog | Home
all groups > asp.net > february 2004 >

asp.net : How can I set the request encoding of a webform?



krondor NO[at]SPAM dreamwiz.com
2/12/2004 11:41:07 PM
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,
matt
2/13/2004 12:08:49 PM
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


[quoted text, click to view]

krondor NO[at]SPAM dreamwiz.com
2/15/2004 10:16:33 PM
Thank you for your help.
I tried that way, but just other wrong result comes out.
Manipulating web.config for request encoding work well...


[quoted text, click to view]
AddThis Social Bookmark Button