Re: requestEncoding = "ISO-8859-1"



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


.



Relevant Pages

  • Re: Diacritical marks in array dont translate
    ... html and/or javascript is saved is in a different encoding than the encoding you specified in your HTML. ... Or maybe you forgot to specify the ... Provided that the used script engine supports Unicode escape sequences. ...
    (comp.lang.javascript)
  • Re: requestEncoding = "ISO-8859-1"
    ... I placed the META tag in the .html page, not the .aspx page, and this ... UTF-8 into the meta tag of every form our staff creates? ... browser assumes ISO-8859-1 by default (check your browser's encoding ... HTML 4.01 even includes an attribute to specify the character encoding ...
    (microsoft.public.dotnet.framework.aspnet)
  • saving settings on a page?
    ... I have a log file that is viewed on the local machine. ... settings on the html page that allow the user to specify how the file ... settings. ...
    (comp.lang.javascript)
  • Re: saving settings on a page?
    ... settings on the html page that allow the user to specify how the file ... I'm just wnodering what are my options in saving these ... settings. ...
    (comp.lang.javascript)
  • Re: CSS found in Movable Type -- Nope
    ... ('binary' encoding is not supported, ... settings for comments -- with 'Allow html' off and with ... 'Allow html' on and the default santize specs (which ... you can turn santize off -- you can leave your ...
    (Bugtraq)

Loading