Re: requestEncoding = "ISO-8859-1"
- From: Joerg Jooss <news-reply@xxxxxxxxxxxxx>
- Date: Wed, 8 Feb 2006 19:09:00 +0000 (UTC)
Thus wrote Juan,
Joerg,
We've had this conversation before, but never resolved it.
You never came back to me ;-)
What I've found, in my experience, is that ASP.NET settings take
precedence over HTML settings and, thus, utf-8 doesn't display
characters 128-255 as you say itshould.
That happens whenever actual request encoding and expected request encoding don't match, and it breaks with practically any combination of encodings other than those that happen to be compatible, like US-ASCII/actual and UTF-8/expected.
Whenever you find that for an expected encoding <e1> a web form's form data is corrupted, but switching to encoding <e2> on the server-side solves the problem, all that you do is adjust the server side to the client side. The point is that the client should have used <e1>.
(Why is it that <e2> always seems to be ISO-8859-1? Because that's the default all browsers implement...)
If I include
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
in an aspx page source, the setting which prevails is the one
specified
in web.config.
Yes, but this is completely irrelevant in case of Mark's problem. Maybe I wasn't clear enough: With HTML form I meant the plain HTML file. That's where you need a META-Tag, because that's the form that uses the wrong encoding.
Adding a META tag in an ASP.NET web forms isn't useful, as ASP.NET generates an appropriate HTTP Content-Type header like "Content-Type: text/html; charset: utf-8", which thankfully overrides any META tag.
Can you post a complete page example which proves what you're saying ?
Well, there's http://www.microsoft.com/spain ;-)
But I'll be happy to use that topic for my starving blog. Give me a week or so, OK? I'll also revew that stuff we looked into last year.
--
Joerg Jooss
news-reply@xxxxxxxxxxxxx
.
- References:
- Re: requestEncoding = "ISO-8859-1"
- From: Juan T. Llibre
- Re: requestEncoding = "ISO-8859-1"
- Prev by Date: Re: Export to Excel
- Next by Date: Re: Export to Excel
- Previous by thread: Re: requestEncoding = "ISO-8859-1"
- Next by thread: Re: requestEncoding = "ISO-8859-1"
- Index(es):
Relevant Pages
|