Обсуждение: Search Templates & the new wesite look

Поиск
Список
Период
Сортировка

Search Templates & the new wesite look

От
"John Hansen"
Дата:
lwp-request -esd 'http://www.postgresql.org/files/documentation/books/pghandbuch/html/sql-createindex.html'

200 OK
Connection: close
Date: Sun, 09 Jan 2005 02:27:42 GMT
Accept-Ranges: bytes
Age: 135
ETag: "7398c5-2c7f-41e08228"
Server: Apache/1.3.31 (Unix) PHP/4.3.9 mod_ssl/2.8.20 OpenSSL/0.9.7d
Content-Length: 11391
Content-Type: text/html; charset=utf-8
Last-Modified: Sun, 09 Jan 2005 01:00:24 GMT
Client-Date: Sun, 09 Jan 2005 02:29:57 GMT
Client-Peer: 66.98.251.159:80
Client-Response-Num: 1
Link: <mailto:pgsql-docs@postgresql.org>; rev="MADE"
Link: <index.html>; rel="HOME"; title="PostgreSQL"
Link: <sql-commands.html>; rel="UP"; title="SQL-Befehle"
Link: <sql-creategroup.html>; rel="PREVIOUS"; title="CREATE GROUP"
Link: <sql-createlanguage.html>; rel="NEXT"; title="CREATE LANGUAGE"
Link: <stylesheet.css>; rel="STYLESHEET"; type="text/css"
Title: CREATE INDEX
X-Cache: HIT from nme-pow-pr3.tpgi.com.au
X-Meta-Creation: 2003-05-26T21:48:18
X-Meta-GENERATOR: Modular DocBook HTML Stylesheet Version 1.73


Notice how the server replies with content-type text/html; charset=utf-8 when in fact, it's NOT encoded in utf8.....

If you return charset in content type, then it better be in that charset, or browsers will get confused, not to mention
searchengines will have a hard time indexing it. 


Kind regards,

John

Re: Search Templates & the new wesite look

От
"Dave Page"
Дата:

> -----Original Message-----
> From: John Hansen [mailto:john@geeknet.com.au]
> Sent: 09 January 2005 02:33
> To: Dave Page
> Cc: pgsql-www@postgresql.org
> Subject: Search Templates & the new wesite look
>
> lwp-request -esd
> 'http://www.postgresql.org/files/documentation/books/pghandbuc
> h/html/sql-createindex.html'
>
> 200 OK
> Connection: close
> Date: Sun, 09 Jan 2005 02:27:42 GMT
> Accept-Ranges: bytes
> Age: 135
> ETag: "7398c5-2c7f-41e08228"
> Server: Apache/1.3.31 (Unix) PHP/4.3.9 mod_ssl/2.8.20 OpenSSL/0.9.7d
> Content-Length: 11391
> Content-Type: text/html; charset=utf-8
> Last-Modified: Sun, 09 Jan 2005 01:00:24 GMT
> Client-Date: Sun, 09 Jan 2005 02:29:57 GMT
> Client-Peer: 66.98.251.159:80
> Client-Response-Num: 1
> Link: <mailto:pgsql-docs@postgresql.org>; rev="MADE"
> Link: <index.html>; rel="HOME"; title="PostgreSQL"
> Link: <sql-commands.html>; rel="UP"; title="SQL-Befehle"
> Link: <sql-creategroup.html>; rel="PREVIOUS"; title="CREATE GROUP"
> Link: <sql-createlanguage.html>; rel="NEXT"; title="CREATE LANGUAGE"
> Link: <stylesheet.css>; rel="STYLESHEET"; type="text/css"
> Title: CREATE INDEX
> X-Cache: HIT from nme-pow-pr3.tpgi.com.au
> X-Meta-Creation: 2003-05-26T21:48:18
> X-Meta-GENERATOR: Modular DocBook HTML Stylesheet Version 1.73
>
>
> Notice how the server replies with content-type text/html;
> charset=utf-8 when in fact, it's NOT encoded in utf8.....
>
> If you return charset in content type, then it better be in
> that charset, or browsers will get confused, not to mention
> search engines will have a hard time indexing it.

Hmm - Alexey - what's the best way to fix this do you think? Set it to
us-ascii in common-docs.html? Doesn't seem right somehow though...

/D

Re: Search Templates & the new wesite look

От
"John Hansen"
Дата:
> Hmm - Alexey - what's the best way to fix this do you think?
> Set it to us-ascii in common-docs.html? Doesn't seem right
> somehow though...

Use recode to convert all the non-utf8 documents to utf8... ?

... JOhn

Re: Search Templates & the new wesite look

От
"Dave Page"
Дата:

> -----Original Message-----
> From: John Hansen [mailto:john@geeknet.com.au]
> Sent: 10 January 2005 10:13
> To: Dave Page
> Cc: pgsql-www@postgresql.org; Alexey Borzov
> Subject: RE: Search Templates & the new wesite look
>
>
> > Hmm - Alexey - what's the best way to fix this do you think?
> > Set it to us-ascii in common-docs.html? Doesn't seem right
> > somehow though...
>
> Use recode to convert all the non-utf8 documents to utf8... ?

~10000 of them are built from an (ascii) database, compiled from the
PostgreSQL SGML docs.

/D

Re: Search Templates & the new wesite look

От
"John Hansen"
Дата:
>
> ~10000 of them are built from an (ascii) database, compiled
> from the PostgreSQL SGML docs.

K, so use mod_filter to let apache run recode on them :P

... JOhn

Re: Search Templates & the new wesite look

От
"Dave Page"
Дата:

> -----Original Message-----
> From: John Hansen [mailto:john@geeknet.com.au]
> Sent: 10 January 2005 10:17
> To: Dave Page
> Cc: pgsql-www@postgresql.org; Alexey Borzov
> Subject: RE: Search Templates & the new wesite look
>
> >
> > ~10000 of them are built from an (ascii) database, compiled
> > from the PostgreSQL SGML docs.
>
> K, so use mod_filter to let apache run recode on them :P

Could do (on the master site). I still wanna hear Alexey's thoughts
though :-)

/D

Re: Search Templates & the new wesite look

От
Alexey Borzov
Дата:
Hi,

John Hansen wrote:
> Notice how the server replies with content-type text/html; charset=utf-8 when in fact, it's NOT encoded in utf8.....

I don't see the problem with this since UTF-8 is the same as ASCII for
Latin characters.

Re: Search Templates & the new wesite look

От
"John Hansen"
Дата:
> I don't see the problem with this since UTF-8 is the same as
> ASCII for Latin characters.

Except for those accented characters like the german umlaut....

... JOhn