* On Wed, Mar 09 2011, Todd Holbrook via RT wrote:
Show quoted text> Wed Mar 09 15:00:08 2011: Request 66506 was acted upon.
> Transaction: Ticket created by HOLBROOK
> Queue: Catalyst-Runtime
> Subject: Wide character in print with Unicode::Encoding (Catalyst::Log)
> Broken in: 5.80032
> Severity: Normal
> Owner: Nobody
> Requestors: holbrook@cpan.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=66506 >
>
>
> On a fresh Catalyst test application, adding "Unicode::Encoding" to the
> plugins and then sending UTF-8 characters in a GET (and probably POST)
> request results in:
>
> Wide character in print at
> /opt/local/lib/perl5/site_perl/5.10.1/Catalyst/Log.pm line 108.
>
> The character does seem to print correctly in the "Query parameters"
> section of the debug output, however. The warning does not come up if
> debug is turned off.
That's a coincidence because your terminal interprets STDOUT/STDERR as
streams of UTF-8-encoded characters. But the correct thing to do is
explicitly encode characters being printed to the log in Catalyst::Log.
--
print just => another => perl => hacker => if $,=$"