From: Thomas Kolejka Date: Tue, 31 May 2005 07:55:11 GMT Subject: [gitweb PATCH] Configure encoding Message-ID: <1839.1117526111@www5.gmx.net> The following patch makes it easy to change the encoding: --- gitweb.cgi.177 2005-05-31 09:43:17.000000000 +0200 +++ gitweb.cgi.p 2005-05-31 09:48:46.000000000 +0200 @@ -20,6 +20,9 @@ my $my_uri = $cgi->url(-absolute => 1); my $rss_link = ""; +my $encoding = "utf-8"; +$encoding = "iso-8859-1"; + # absolute fs-path which will be prepended to the project path my $projectroot = "/pub/scm"; $projectroot = "pub/scm"; @@ -183,9 +186,9 @@ $title .= "/$action"; } } - print $cgi->header(-type=>'text/html', -charset => 'utf-8', -status=> $status); + print $cgi->header(-type=>'text/html', -charset => $encoding, -status=> $status); print < + @@ -1112,8 +1115,8 @@ my (@revlist) = map { chomp; $_ } <$fd>; close $fd || die_error(undef, "Reading rev-list failed."); - print $cgi->header(-type => 'text/xml', -charset => 'utf-8'); - print "\n". + print $cgi->header(-type => 'text/xml', -charset => $encoding); + print "\n". "\n"; print "\n"; print "$project\n". Thomas -- Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie! Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl