From: Martin J. E. <mar...@ea...> - 2006-09-26 15:19:24
|
Hi, I am using Log::Log4perl 1.06 in a rather large project and getting the old "Wide character in print..." problem. Most of my appenders are file appenders and I also have a Log::Dispatch::Screen handler. All my handlers have: log4perl.appender.APPENDER.utf8 = 1 set and I've set binmode ":utf8" on STDOUT and STDERR and yet I'm still getting: Wide character in print at /usr/lib/perl5/site_perl/5.8.8/Log/Dispatch/File.pm line 124. After loads of searching around and debugging I realised I'd missed the obvious which is I am using two sorts of appenders - Log::Dispatch::File and Log::Log4perl::Appender::File. The latter seems to support the utf8 flag, the former does not. I have no idea why I've mixed File appenders from different places. Other than the obvious difference of one supports utf8 and the other does not is there any reason any one knows why I shouldn't just swap my Log::Dispatch::File appenders to Log4perl ones? As an aside, why the duplication of File appenders with different functionality? This cost me some time to locate. Thanks. Martin -- Martin J. Evans Easysoft Ltd, UK http://www.easysoft.com |