Re: requestEncoding = "ISO-8859-1"
- From: "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx>
- Date: Tue, 7 Feb 2006 20:09:18 -0400
Joerg,
We've had this conversation before, but never resolved it.
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.
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.
Can you post a complete page example which proves what you're saying ?
Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"Joerg Jooss" <news-reply@xxxxxxxxxxxxx> wrote in message
news:94fc5071122c48c7fa53174ba20a@xxxxxxxxxxxxxxxxxxxxxxx
Don't be. All that happens is that your HTML form likely doesn't specify any encoding, thus your
browser assumes ISO-8859-1 by default (check your browser's encoding option after loading the
form!).
HTML 4.01 even includes an attribute to specify the character encoding for a submitted web form
("accept-charset"), but last time I checked it was practically unsupported. What happens instead
is that the original response encoding (ISO-8859-1 assumed if not specified) is used as subsequent
request encoding.
Therefore, simply mark your static HTML as UTF-8 encoded as well (and of course encode them
physically using UTF-8 as well!):
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
That should do the trick.
Joerg Jooss
.
- Follow-Ups:
- Re: requestEncoding = "ISO-8859-1"
- From: Joerg Jooss
- Re: requestEncoding = "ISO-8859-1"
- From: Mark
- Re: requestEncoding = "ISO-8859-1"
- References:
- Re: requestEncoding = "ISO-8859-1"
- From: Mark
- Re: requestEncoding = "ISO-8859-1"
- From: Joerg Jooss
- Re: requestEncoding = "ISO-8859-1"
- Prev by Date: Re: .NET IsNumeric function
- Next by Date: Error running vb.net asp page on XP Pro SP2
- Previous by thread: Re: requestEncoding = "ISO-8859-1"
- Next by thread: Re: requestEncoding = "ISO-8859-1"
- Index(es):
Relevant Pages
|
Loading