Re: requestEncoding = "ISO-8859-1"



Thank you! I should mention that this whole discussion certainly makes me
wish I had an umlaut in my name. "Mark" is far to bland.

mark


"Joerg Jooss" <news-reply@xxxxxxxxxxxxx> wrote in message
news:94fc5071128468c7fb05d1a56af2@xxxxxxxxxxxxxxxxxxxxxxx
Thus wrote Mark,

You wrote:
*** Therefore, simply mark your static HTML as UTF-8 encoded as well
(and of
course encode them physically using UTF-8 as well!): ***
I placed the META tag in the HTML form file. Your sentence implies
two steps? Sorry - how does one encode them physicially using UTF-8
as well?

Mark, the second step is only required if your HTML file contains non-HTML
encoded non-ASCII.

Example: I can either use "J&ouml;rg" or "Jörg" to write my name as some
static HTML. But latter string requires an appropriate encoding for the
HTML source file.
Thus, I need to pick an encoding that is capable of representing the
character 'ö' like UTF-8 or ISO-8859-1. When I save this file, I need to
tell my HTML editor this desired encoding. How this is done depends on the
editor. Notepad for example has an encoding drop-down in its "Save As"
file dialog. Visual Studio has an option for selecting an encoding in its
File menu, as do SciTE or UltraEdit as far as I remember.
But of course one thing always remains true: You must not declare in your
HTML page's META tag an encoding that's different from the one you used to
save the file. Of course the same compatibility rules as in the
request/response scenario apply, but it's best just to keep META
declaration and actual file encoding the same.

Cheers, --
Joerg Jooss
news-reply@xxxxxxxxxxxxx




.



Relevant Pages

  • Re: Character encoding
    ... a lot of editors allow to choose the text encoding ... that in my html code i have to set manually. ... There is a little confusion here: the way a text editor encore the ... HTML can contain a meta tag that specifies the encoding, ...
    (Fedora)
  • Re: Why is ASP.NET changing character encoding of documents?
    ... My default encoding in web.config was iso-8859-1. ... The web.config setting takes precedence over the meta tag. ... >> The below html validates correctly on w3.org's html validator when the file ... >> error below from the validator. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: requestEncoding = "ISO-8859-1"
    ... I placed the META tag in the HTML form file. ... Sorry - how does one encode them physicially using UTF-8 ... I need to pick an encoding that is capable of representing the character 'ö' like UTF-8 or ISO-8859-1. ... But of course one thing always remains true: You must not declare in your HTML page's META tag an encoding that's different from the one you used to save the file. ...
    (microsoft.public.dotnet.framework.aspnet)
  • 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)
  • Re: Where to get BeautifulSoup--www.crummy.com appears to be down.
    ... Beautiful Soup uploaded to my website: ... obtaining a sensible parse tree in the face of common HTML errors. ... the encoding of an HTML or XML document, ... appears after this Tag in the document.""" ...
    (comp.lang.python)

Quantcast