This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Character set for libstdc++ manual
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Gerald Pfeifer <gerald at pfeifer dot com>
- Cc: Martin von Gagern <Martin dot vGagern at gmx dot net>, libstdc++ at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Sun, 10 Jun 2012 14:39:11 +0100
- Subject: Re: Character set for libstdc++ manual
- References: <4F8866B5.3080506@gmx.net> <alpine.LNX.2.00.1206101235530.7564@zbenl.fvgr>
On 10/06/2012, Gerald Pfeifer <gerald@pfeifer.com> wrote:
> [ Adding our libstdc++ list ]
>
> On Fri, 13 Apr 2012, Martin von Gagern wrote:
>> While browsing http://gcc.gnu.org/onlinedocs/libstdc++/ using Firefox, I
>> noticed some mojibake due to the fact that the page was interpreted as
>> iso-8859-15, my default charset, while it is actually meant to be utf-8.
>> The server does not add a charset parameter to its content-type header.
>> Neither does the document contain a corresponding meta tag. The document
>> does contain an xml header, but as the document is shipped as text/html,
>> not application/xhtml+xml, I believe the browser is correct to ignore
>> that.
>
> I looked into this, and believe the issue we do want to tackle is
> the HTML pages generated for libstdc++.
>
> For example, looking at libstdc++/doc/html/manual/index.html, at the
> end of the file we have
>
> <td align="center">\xc2\xa0</td><td align="right">\xc2\xa0...
> ...The GNU C++ Library\xc2\xa0</td>
>
> where I believe \xc2\xa0 is Unicode non-breaking space. Wouldn't it
> be better to issue HTML instead?
>
>
> Alternately, you could add
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
> to the <head>...</head> section of the libstdc++ pages.
>
> Gerald
I had a quick look at telling docbook stylesheets to add the charset,
or not output utf8, and couldn't see how to do it. Maybe Benjamin
knows.