[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    [PATCH] declaring UTF-8 for HTML
From:       Nicolas Goutte <nicog () snafu ! de>
Date:       2002-07-16 12:27:04
[Download RAW message or body]

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!


["patch_templ_begin_html.txt" (text/plain)]

--- 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">


_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic