Re: gitweb forgets to send utf8 header for raw blob views
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- May 30, 2008, 08:18 UTC
- Message-ID
- <m3tzgg1a06.fsf@localhost.localdomain>
- In-Reply-To
- <alpine.LNX.1.10.0805282002510.19264@fbirervta.pbzchgretzou.qr>
Jan Engelhardt <jengelh@medozas.de> writes:
Show 5 quoted lines
> I have configured gitweb to use utf8, and that works for text blob views > like on > http://dev.medozas.de/gitweb.cgi?p=hxtools;a=blob;f=bin/git-forest;hb=HEAD > but it does not for raw blob views like > http://dev.medozas.de/gitweb.cgi?p=hxtools;a=blob_plain;f=bin/git-forest;hb=HEAD
This can depend on configuration, both on gitweb configuration (you can for example define $default_blob_plain_mimetype to 'text/plain; charset=utf-8', and define $default_text_plain_charset to 'utf-8'), and on your /etc/mime.types; gitweb does not add charset info if mimetype is acquired from mime.types, which I guess is a mistake.
-- Jakub Narebski Poland ShadeHawk on #git