Re: requestEncoding = "ISO-8859-1"
- From: "Mark" <markfield88@xxxxxxxxxxxxx>
- Date: Wed, 8 Feb 2006 08:07:54 -0600
I placed the META tag in the .html page, not the .aspx page, and this
appears to have solved the problem. I have attached the HTML in a text
file, as this email was not very excited about holding html tags. It
includes several Spanish words - don't get too caught up in my inability to
write a coherent sentence. Thank you!
HOWEVER - I'm still baffled on what is the RIGHT solution. Do I hard code
UTF-8 into the meta tag of every form our staff creates? Or do we just
change our web.config to support ISO-8859-1 instead of UTF-8? Both smell
like hacks...
Thanks again.
Mark
"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:%23zO1oPELGHA.3972@xxxxxxxxxxxxxxxxxxxxxxx
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
begin 666 sample_utf8_html_aspx.txt
M[[N_/"%$3T-465!%($A434P@4%5"3$E#("(M+R]7,T,O+T141"!(5$U,(#0N
M,"!4<F%N<VET:6]N86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,2)=.PT*4F5S<&]N<V4N5W)I=&4H(CQB<CY497-T,2!O=71P=70Z("(@
M*R!497-T,2D[#0H-"G-T<FEN9R!497-T,B ](%)E<75E<W1;(G1E<W0R(ET[
M#0I297-P;VYS92Y7<FET92@B/&)R/E1E<W0R(&]U='!U=#H@(B K(%1E<W0R
&*3L-"@T*
`
end
.
- Follow-Ups:
- Re: requestEncoding = "ISO-8859-1"
- From: Joerg Jooss
- Re: requestEncoding = "ISO-8859-1"
- From: Juan T. Llibre
- 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"
- From: Juan T. Llibre
- Re: requestEncoding = "ISO-8859-1"
- Prev by Date: Ideas needed - sending emails with "progress bar"
- Next by Date: Re: requestEncoding = "ISO-8859-1"
- Previous by thread: Re: requestEncoding = "ISO-8859-1"
- Next by thread: Re: requestEncoding = "ISO-8859-1"
- Index(es):
Relevant Pages
|