Re: requestEncoding = "ISO-8859-1"



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ö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: 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)
  • 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"
    ... "Mark" is far to bland. ... I placed the META tag in the HTML form file. ... I need to pick an encoding that is capable of representing the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: mail() problem
    ... Human users use normal mail programs that can send HTML messages ... your problem seems to be due to incorrect encoding. ... > base64, but i think that's different than using quoted-printable encoding. ... PHP Classes - Free ready to use OOP components written in PHP ...
    (alt.php)