Update of /cvsroot/pastebot/pastebot/templates
In directory sc8-pr-cvs1:/tmp/cvs-serv19882
Modified Files:
paste-answer.html paste-form.html paste-lookup.html
Log Message:
Matthijs van Duin (efnet, CPAN "xmath") insisted that the HTML
responses aren't compliant with w3c's HTML 4.01 specification without
including a character encoding. He STRONGLY insisted that some form
of encoding be specified.
| <xmath> [character encoding is] not "advisory".. without it [the
| HTML] is not valid
He provided the patch that I am applying with this commit. By
applying this patch, I have disregarded the objections of Juerd and
Yaakov:
| <Yaakov> The ecoding type is NOT part of the HTML in that document,
| it is a server issue.
| <xmath> that's why you should specify it in the header
| <xmath> Yaakov: if you just specify it on both the form page and the
| result page, then at least people can enter extended chars
| without worrying about them getting messed up
|
| <xmath> Juerd: I'm not sure all browsers can properly deal with
| utf-8
| <xmath> though I guess modern ones do
| <Juerd> xmath: Most modern browsers
| <Juerd> xmath: But most ANY browsers guess charsets, and they're
| rather good at that
| <xmath> Juerd: yes, because there are so many broken pages
| <Yaakov> Yes... I think that was my point. I don't know what will
| be pasted.
|
| <xmath> if you want to rely on guessing
| <xmath> fine
| <xmath> but then don't put up a "Valid HTML 4.01" logo
| <xmath> because it isn't
| <xmath> anyway, dinner time
| <xmath> bbl
|
| <Juerd> xmath: HTML 4.01 has nothing to do with the charset
| <Yaakov> THAT IS MY POINT
| <Yaakov> The HTML _IS_ VALID
I will be happy to reverse this patch if it breaks more than it fixes.
Index: paste-answer.html
===================================================================
RCS file: /cvsroot/pastebot/pastebot/templates/paste-answer.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** paste-answer.html 4 Jun 2003 03:23:24 -0000 1.2
--- paste-answer.html 5 Dec 2003 17:29:44 -0000 1.3
***************
*** 3,6 ****
--- 3,7 ----
<head>
<title>Your paste, number [% $paste_id %]...</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
Index: paste-form.html
===================================================================
RCS file: /cvsroot/pastebot/pastebot/templates/paste-form.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** paste-form.html 30 Oct 2003 17:38:55 -0000 1.7
--- paste-form.html 5 Dec 2003 17:29:45 -0000 1.8
***************
*** 3,6 ****
--- 3,7 ----
<head>
<title>pasting to [% $bot_name %]</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
Index: paste-lookup.html
===================================================================
RCS file: /cvsroot/pastebot/pastebot/templates/paste-lookup.html,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** paste-lookup.html 2 Nov 2003 20:16:38 -0000 1.8
--- paste-lookup.html 5 Dec 2003 17:29:45 -0000 1.9
***************
*** 4,7 ****
--- 4,8 ----
<title>[% $bot_name %] paste from [% $nick %]...</title>
<link rel="stylesheet" type="text/css" href="style">
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF">
|