Form Post looses Umlaut

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to post a simple Form from HTML File to an ASPX File. If I enter
sth like "Pöhler" into the INPUT field, the target ASP shows that "Phler" was
posted.

Where is the umlaut gone?


Markus
 
Try setting the encodings and culture in web.config
to values which allow characters 128-255 to be both
read and written.

For example,

<globalization
requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1"
fileEncoding="iso-8859-1"
culture="es-DO"
uiCulture="es-DO"
/>

You might have to test to see which values are in accord
with the culture for the country you're located in.



Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
 
Good answer, thank you!!

Markus Pöhler
Software Developer
netpoint-edv gmbh
Germany
 
YOUR'E A SMART ONE! ;)


Markus PÖhler
Software Developer
netpoint-edv gmbh
Germany
 
Juan said:
Try setting the encodings and culture in web.config
to values which allow characters 128-255 to be both
read and written.

For example,

<globalization
requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1"
fileEncoding="iso-8859-1"
culture="es-DO"
uiCulture="es-DO"
/>

You might have to test to see which values are in accord
with the culture for the country you're located in.

Rather than changing the server-side, I'd change the client-side to
properly send UTF-8.

Cheers,
 
re:
Rather than changing the server-side, I'd change
the client-side to properly send UTF-8.

B-b-b-u-t, how would server-side programming change the
client-side setup, and how would the client "send" anything ?



Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
 
Juan said:
re:

B-b-b-u-t, how would server-side programming change the
client-side setup, and how would the client "send" anything ?

Not the setup, but the behaviour.

Assuming a browser is configured to use the encoding provided by the
server-side, the answer is: provide the encoding:

Content-Type: text/html; charset=utf-8

That's what ASP.NET does, BTW.

If the client doesn't pick it up, it's either hardwired to use a
certain encoding (evil), or some stray META tag has overruled the HTTP
header (super evil).

Cheers,
 

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

Back
Top