Project

General

Profile

[Solved] Server Error Pages - XML Declaration

Added by gogonowski almost 5 years ago

What is the purpose of the XML Declaration contained in the Server Error Pages and encoding iso-8859-1?
Is it possible to suppress or change to utf-8?

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title>404 - Not Found</title>
 </head>
 <body>
  <h1>404 - Not Found</h1>
 </body>
</html>

Replies (3)

RE: Server Error Pages - XML Declaration - Added by gstrauss almost 5 years ago

Please make more of an attempt to read the available documentation and ask more specific questions about the documentation.

RE: Server Error Pages - XML Declaration - Added by gogonowski almost 5 years ago

Believe me, I’ve Searched and Googled to the bone on this one, specific to Lighttpd, and not.
I have been all over the Lighttpd Documentation.
For as complete as it is, this specific question wasn’t answered. Maybe I missed it.
Perhaps you can point me to the section this is documented.
About the only thing I've come up with is that XML Declaration is not needed for HTML.
What’s the story?
[[https://www.w3schools.com/tags/tag_doctype.asp]]

RE: Server Error Pages - XML Declaration - Added by gstrauss almost 5 years ago

I’ve Searched and Googled to the bone on this one.

lighttpd was originally authored circa 2005 when this syntax was one such syntax considered correct.
The published standard, which your "Herculean" search efforts failed to find, was the top link on my one second search: https://www.w3.org/TR/xhtml1/
You might note that it is the very same website which provides the DTD.

Did it occur to you to visit the link to the DTD (without a search engine)? Have you read the comment at the top of the DTD?
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd

Did you visit http://www.w3.org/1999/xhtml ?

What is the purpose of the XML Declaration contained in the Server Error Pages and encoding iso-8859-1?

Did you read any of the above pages, whose links are part of the very short document you are asking about?

.

The answers to your other question starts in lighttpd documentation.

Is it possible to suppress or change to utf-8?

I make no claims of the lighttpd documentation being perfect or complete. However, I will emphatically state that I am not your personal service to read the documentation to you. If you make a greater effort to read the documentation and have more specific questions about the documentation, then you might find my responses less snippy.

Is it possible to suppress or change to utf-8?

What did you try? If you read the documentation and tried anything, you have not shared what you have tried and what results you obtained.

    (1-3/3)