Passing special characters from html form to aspx application

H

hoenes1

Hi all,

I have a standard html form containing several textboxes. Since this
is a german application, the boxes are likely to contain special
characters like ä, ö, ß, etc. The form is passed to the asp.net
application via action="FormHandler.aspx" method="post". Evaluating
the values in Request.Form.GetValues(key)[0] yields the content of the
textboxes omitting the special characters, for example typing
"Rüdiger" (7 chars) in the form results in "Rdiger" (6 chars) in the
aspx application. An interesting effect is the following: When I use
method="get" instead and check Request.Url.ToString(), the correct
special chars are in the url
(http://.../FormHandler.aspx?Name=Rüdiger?...). The problem is that I
have to use method="post". Changing encType to "multipart/form-data"
or "text/plain" or "application/x-www-form-urlencoded" doesn't change
the behaviour. Any ideas? I guess this should be possible with
asp.net.

Thanks in advance.
 

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,053
Latest member
BrodieSola

Latest Threads

Top