On Sun, Aug 24, Stan Brown inscribed on the eternal scroll:
Sure thing. The frame in question, whose URL is
http://msdn.microsoft.com/workshop/a...attributes.asp
is sent without an HTTP charset attribute, but it contains a
"meta" which purports its charset to be Windows-1252.
But in fact, the encoding of the content is evidently utf-8.
If you view the individual framed document and then manually set the
view coding to utf-8, it comes out right.
The overall frameset has a "meta" which is trying to set the charset
to utf-8, but this is useless in as much as the frameset document
itself doesn't have any content that's displayed on the framed page.
Strangely, if you view the whole frameset in Mozilla and then manually
set the view coding to utf-8 (even though it's already showing as
utf-8), it seems Mozilla makes it come out right. But of course this
is no solution, I'm only exhibiting it as a diagnostic technique.
And the trick doesn't seem to work in IE.
Even if the individual frame documents were to come without any meta
charset of their own, I don't know of any interworking specification
that would call for them to inherit the character encoding from the
frameset document's meta. AFAIK the regular interworking rules are
applied *individually for each framed document*, independent of the
overall frameset:
- the charset specified in the HTTP header takes priority, if present
- in its absence, any meta...http-equiv charset is used
And indeed that is only logical, since the encoding is a property of
the content of each framed document, and doesn't miraculously change
when it's incorporated into this or that frameset.
cheers