Re: Bug#865713: Declaring a charset of UTF-8 for policy files

Russ Allbery <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Organization The Eyrie
Message-ID <[email protected]>
debian-www, not debian-web.

Colin Watson <[email protected]> writes:
> On Fri, Jun 23, 2017 at 11:49:20PM -0700, Russ Allbery wrote:

>> I'm still a bit dubious about this, since I don't believe editors and
>> generators normally add it, but given how we generate the text versions
>> of the documents, it's relatively easy to add a leading BOM and seems
>> harmless.  I'll take a look.

> I share the discomfort in your previous message with using the UTF-8
> BOM.  I'd have thought that a better approach here would be to fix this
> at the HTTP layer:
> https://www.debian.org/doc/packaging-manuals/upgrading-checklist.txt
> (and other text files here) should return "Content-Type: text/plain;
> charset=UTF-8", not just "Content-Type: text/plain".

debian-www folks, is there a way to declare UTF-8 as the charset for all
the *.txt files that originate from the debian-policy package and are
served by www.debian.org?  I can guarantee that all the text files shipped
as part of the Policy package will be valid UTF-8.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.