aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-11-23 04:26:40 +0100
committerKay Sievers <kay.sievers@suse.de>2005-11-23 04:26:40 +0100
commit10bb9036604006979c3a168760b01812e5dbbb40 (patch)
treee335c709668c1b9166d140c95e45030a4fe12818
parent5b7a14fb4d1d38e73026e69608f11f0016f0870a (diff)
downloadgit-10bb9036604006979c3a168760b01812e5dbbb40.tar.gz
git-10bb9036604006979c3a168760b01812e5dbbb40.tar.xz
fix utf8 decoding
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
-rwxr-xr-xgitweb.cgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/gitweb.cgi b/gitweb.cgi
index e0e71ce9f..dc4435c09 100755
--- a/gitweb.cgi
+++ b/gitweb.cgi
@@ -14,9 +14,10 @@ use CGI::Util qw(unescape);
use CGI::Carp qw(fatalsToBrowser);
use Encode;
use Fcntl ':mode';
+binmode STDOUT, ':utf8';
my $cgi = new CGI;
-my $version = "252";
+my $version = "253";
my $my_url = $cgi->url();
my $my_uri = $cgi->url(-absolute => 1);
my $rss_link = "";
@@ -217,8 +218,8 @@ sub esc_url {
sub esc_html {
my $str = shift;
- $str = escapeHTML($str);
$str = decode("utf8", $str, Encode::FB_DEFAULT);
+ $str = escapeHTML($str);
return $str;
}