Permalink
Browse files

Unicode fix in WebTitle.pm

  • Loading branch information...
1 parent 0536484 commit cc4f14ca3ee85030f979e07983f1ffb60e800e88 @tadzik committed May 23, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 a8bot/Plugin/WebTitle.pm
View
@@ -2,6 +2,7 @@ package a8bot::Plugin::WebTitle;
use Moose;
use LWP::UserAgent;
use Sys::SigAction 'timeout_call';
+use Encode;
with 'a8bot::Plugin';
has 'ua' => (
@@ -28,7 +29,7 @@ sub pubmsg {
my ($title) = $site =~ /<title>([^<]+)<\/title>/i;
if ($title) {
$title =~ s/\n//g;
- return "[ $title ]";
+ return encode('utf-8', "[ $title ]");
}
} else {
return '[ '.$site->status_line.' ]';

0 comments on commit cc4f14c

Please sign in to comment.