]> git.donarmstrong.com Git - infobot.git/commitdiff
utf8
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Mon, 28 Apr 2008 16:22:54 +0000 (16:22 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Mon, 28 Apr 2008 16:22:54 +0000 (16:22 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1813 c11ca15a-4712-0410-83d8-924469b57eb5

src/logger.pl

index fd3d6a7d02f0582234dfdfead1a544099db11469..75ebebc448075e77d788d6786aecf94fef1c3f4e 100644 (file)
@@ -7,6 +7,7 @@
 #
 
 use strict;
+use utf8;
 
 use vars qw($statcount $bot_pid $forkedtime $statcountfix $addressed);
 use vars qw($logDate $logold $logcount $logtime $logrepeat $running);
@@ -91,6 +92,7 @@ sub cl {
 
 # logging support.
 sub openLog {
+    binmode( STDOUT, ':encoding(UTF-8)' );
     return unless ( &IsParam('logfile') );
     $file{log} = $param{'logfile'};