OSDN Git Service

fix utf-8 flag handling
authorISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
Thu, 18 Oct 2012 06:27:55 +0000 (15:27 +0900)
committerISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
Thu, 18 Oct 2012 06:27:55 +0000 (15:27 +0900)
mubot4fb.pl

index 0facb44..a0a141b 100755 (executable)
@@ -159,7 +159,7 @@ sub _fb_delete {
 sub _format_submit {
        my ($me, $e) = @_;
 
-       return decode('utf8', $e->{submitter}).'が『'.decode('utf8', $e->{prefix}).' '.decode('utf8', $e->{uri}).' '.decode('utf8', $e->{suffix}).'』と'.strftime('%Y-%m-%d %H:%M:%S', localtime($e->{post_time}));
+       return $e->{submitter}.'が『'.$e->{prefix}.' '.$e->{uri}.' '.$e->{suffix}.'』と'.strftime('%Y-%m-%d %H:%M:%S', localtime($e->{post_time}));
 }
 
 sub _response {