From a5676d2611ed2476a29344a2e0add90d273bebbc Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 5 Apr 2011 21:27:51 +0100 Subject: charset --- cgi/shorten.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cgi/shorten.pl') diff --git a/cgi/shorten.pl b/cgi/shorten.pl index b3b4ff8..b87bfc2 100755 --- a/cgi/shorten.pl +++ b/cgi/shorten.pl @@ -109,7 +109,10 @@ my $url=$q->param('url'); if ($url) { my $str=shorten($url); - say $q->header(-type=>'text/plain'), + say $q->header( + -type => 'text/plain', + -charset => 'utf-8', + ), 'http://',$q->virtual_host,'/',$str; } else { -- cgit v1.2.3