diff options
author | dakkar <dakkar@thenautilus.net> | 2011-04-05 21:27:51 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2011-04-05 21:27:51 +0100 |
commit | a5676d2611ed2476a29344a2e0add90d273bebbc (patch) | |
tree | 54e0ef30cc17998cdbe3fb6d47e5357ff98c1be8 | |
parent | allow cgi dir (diff) | |
download | MyShorten-a5676d2611ed2476a29344a2e0add90d273bebbc.tar.gz MyShorten-a5676d2611ed2476a29344a2e0add90d273bebbc.tar.bz2 MyShorten-a5676d2611ed2476a29344a2e0add90d273bebbc.zip |
charset
-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 { |