gitweb: Convert generated contents to utf8 in commitdiff_plain
commit7720224cebde08186627ab7bdb06018905d84e30
authorYasushi SHOJI <yashi@atmark-techno.com>
Tue, 29 Jan 2008 12:16:02 +0000 (29 21:16 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Jan 2008 05:23:57 +0000 (29 21:23 -0800)
tree0a6fe08e4eb5ab37d563eec2f7dcaeddd091071a
parentab989adf6ab32fb80fd42cc95ed0eacb029258fe
gitweb: Convert generated contents to utf8 in commitdiff_plain

If the commit message, or commit author contains non-ascii, it must be
converted from Perl internal representation to utf-8, to follow what
got declared in HTTP header.  Use to_utf8() to do the conversion.

This necessarily replaces here-doc with "print" statements.

Signed-off-by: Yasushi SHOJI <yashi@atmark-techno.com>
Acked-by: İsmail Dönmez <ismail@pardus.org.tr>
Acked-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl