Re: requestEncoding = "ISO-8859-1"
- From: Joerg Jooss <news-reply@xxxxxxxxxxxxx>
- Date: Wed, 8 Feb 2006 19:31:47 +0000 (UTC)
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
.
- Follow-Ups:
- 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"
- Prev by Date: Re: Adding name-value pair to QueryString Collection?
- Next by Date: Re: Adding name-value pair to QueryString Collection?
- Previous by thread: Re: requestEncoding = "ISO-8859-1"
- Next by thread: Re: requestEncoding = "ISO-8859-1"
- Index(es):
Relevant Pages
|