RE: no encoding specified when creating XHTML documents

Vincent QUINT wrote:
> If your documents are written in French, I suggest you set a
> lang attribute on the <html> or <body> element. Use the Attribute
> button to do that. Then, when you save a document, the encoding
> is added to the XML declaration and a <meta http-equiv...> element
> is generated with the right charset.

Bad idea, IMHO.  Charset is mostly orthogonal to language and one cannot be
inferred from the other in general.  As for the <meta http-equiv...>, it
should always be there, whether the user specifies a language or not (there
is always a charset!)

--
François Yergeau

Received on Wednesday, 23 August 2000 15:05:05 UTC