[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#778772: Changelogs shown do not include a correct charset for displaying them



Hi,

On Sun, 22 Feb 2015, Christophe Siraut wrote:
> > while displaying changelog from the web interface I see that many
> > characters are not shown correctly because they have a different charset
> > than browser default.
> > 
> > Could you please specify the (utf8) charset in the HTTP response or
> > elsewhere?
> 
> These files are served by apache, it appears the following line was
> commented in the vhost host declaration:
> 
>   #AddDefaultChars utf-8
> 
> Problem might be text/html pages already have that header set by django,
> we only want to apply the directive to plain text files. Should we
> enclose that directive in a <Directory /path/to/media> section?

Yes. I just did that:
$ HEAD https://tracker.debian.org/media/packages/0/0ad-data/changelog-0.0.16-1|grep Content-Type
Content-Type: text/plain; charset=utf-8

Shall we also possibly also consider using a .txt extension for all the
text files that we are extracting?

That would make it more future-proof. At some point, the files we are
extracting in media might also contain non-textual files...

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: http://www.freexian.com/services/debian-lts.html
Learn to master Debian: http://debian-handbook.info/get/


Reply to: