My web page is in Latin-1 (ISO-8859-1). So I don need a charset declaration, right?
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
- When attempting to print a web page from my web browser, the right side of the page is being left off. How can I print the whole web page?
- When I selected print, the right side of the web page was still cut off. Why didn’t Smart Print work?
- Why does a printout of an artwork or web page come up missing text on the right?