Bug#45263: [PATCH] declaring UTF-8 for HTML

Nicolas Goutte nicog at snafu.de
Tue Jul 16 12:27:04 UTC 2002


The attached patch is for the file www/koffice/templates/templ_begin.html

It declares correctly the UTF-8 encoding, according to the HTML compactibility 
guidelines of XHTML 1.0.

Can someone commit it, please? Thank you in advance!

Reason: non-XHTML-aware HTML user agents like Konqueror/KHTML (at least 
version 3.0.2) cannot read the XML encoding and therefore do not know in 
which encoding the file is. So the old HTML way of telling the encoding must 
be in the file too.

(That is KDE Bug #45263. This patch corrects it for the KOffice web site.)

Have a nice day/evening/night!

-------------- next part --------------
--- templ-begin.html.orig	Fri Mar  1 17:45:53 2002
+++ templ-begin.html	Tue Jul 16 14:25:01 2002
@@ -18,6 +18,7 @@
 <!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>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 <title><?php echo $title;?></title>
 <link rel="stylesheet" href="/koffice.css" type="text/css" />
 <script language="javascript" type="text/javascript">


More information about the kde-www mailing list