473,408 Members | 1,854 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

How can I set the request encoding of a webform?

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?
Nov 18 '05 #1
2 7009
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
"Wootaek Choi" <kr*****@dreamwiz.com> wrote in message
news:fd**************************@posting.google.c om...
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?

Nov 18 '05 #2
Thank you for your help.
I tried that way, but just other wrong result comes out.
Manipulating web.config for request encoding work well...
"matt" <gr************@hitscricket.com> wrote in message news:<88*******************@stones.force9.net>...
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
"Wootaek Choi" <kr*****@dreamwiz.com> wrote in message
news:fd**************************@posting.google.c om...
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?

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Doug Farrell | last post by:
Hi everyone, I'm trying to build a program to interface to a SOAP/XML interface provided by one of our vendors. This interface is built with MS SOAP Toolkit 3.0, so I'm guessig they are running...
8
by: turnit \(removethis\) | last post by:
I have a login form that uses the post method to carry the information to the next page. The form works just fine in ie6.0, but fails in mozilla and fails in ie5.2 on a mac. "HTTP/1.1 400 Bad...
1
by: Bhupesh Saini | last post by:
I am trying to call a ASPX page using HttpWebRequest class and pass cookie information to it. My ASPX pages gets called just fine, however none of the request cookies are available to the ASPX page....
8
by: Ricky K. Rasmussen | last post by:
Hello NG, I'm having some encoding trouble using my own RequestHandler: Since the RequestHandler must be able to serve content with diffrent encoding, I set the Response.Charset and...
3
by: Axel Dahmen | last post by:
Hi, I've created an aspx page taking a query string argument as parameter. Although I've correctly escaped umlauts in the query string, they do not appear in the QueryString collection. If I...
0
by: Luis Esteban Valencia | last post by:
Hello. I am making the practice of chapter 6. Biztalk Unleashed its about sending an HTTP request with a c# webform. I got this error Unable to complete web request. Web Exception error: Error...
2
by: Bingo | last post by:
Hi group ! I am trying to write an ASP page that would forward an XML request to a remote server, and then write the response to the client (a kind of proxy, if you like). I am sending the...
6
by: Rushwire | last post by:
Does anybody know how to send a meeting request using an ics/vcs (VCalendar) attachment from an asp.net page. I don't want my users to have to double click on the attachment but rather that it is...
10
by: Peter Michaux | last post by:
Hi, All Ajax libraries I've read use encodeURIComponent() on the name- value pairs extracted from forms before POST ing the result to the server with and xmlhttprequest. I can understand why...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.