diff options
Diffstat (limited to 'cgi')
-rwxr-xr-x | cgi/shorten.pl | 5 |
1 files changed, 4 insertions, 1 deletions
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 { |