Ray Dickman wrote:
Does the charset provided over http take priority over the charset
specified in the html meta tags?

Server should win and does in Mozilla.

"To sum up, conforming user agents must observe the following priorities when determining a document's character encoding (from highest priority to lowest):

1. An HTTP "charset" parameter in a "Content-Type" field.
2. A META declaration with "http-equiv" set to "Content-Type" and a value set for "charset".
3. The charset attribute set on an element that designates an external resource." <http://www.w3.org/TR/html401/charset.html#spec-char-encoding>


How does this decision affect the submission of forms? That is, if a
meta tag says latin1, and the http says utf8, in what charset will
the data be submitted to the server?

Third aspect is: <form accept-charset=""> <http://www.w3.org/TR/html401/interact/forms.html#adef-accept-charset>

I'm not sure what happens in which browser whith conflicting settings, but I wouldn't rely on any data without excessive testing. ;-)

Susanne


-- Susanne Jäger http://sujag.de - Webentwicklung und -beratung ****************************************************** The discussion list for http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to