Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

My web page is in Latin-1 (ISO-8859-1). So I don need a charset declaration, right?

0
Posted

My web page is in Latin-1 (ISO-8859-1). So I don need a charset declaration, right?

0

Wrong. You always need a charset declaration, even when you are using Latin-1. To quote from the HTML specification: The HTTP protocol ([RFC2616], section 3.7.1) mentions ISO-8859-1 as a default character encoding when the “charset” parameter is absent from the “Content-Type” header field. In practice, this recommendation has proved useless because some servers don’t allow a “charset” parameter to be sent, and others may not be configured to send the parameter. Therefore, user agents must not assume any default value for the “charset” parameter. — HTML 4.01 Thus you should always include a charset declaration of the form in the element: Your HTML editor will usually give you an easy way to do this. For example, in Microsoft FrontPage you select File > Properties > Language > HTML Encoding—Save the document as, and pick the encoding you want.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123