Dancer icon indicating copy to clipboard operation
Dancer copied to clipboard

Enable Unicode log output to console

Open evoyy opened this issue 10 years ago • 0 comments

When logging a character such as "™" to the console, the following error is produced:

[28211] error @0.011815> [hit #1]request to GET /foo crashed: Warning caught during route execution: Wide character in print at .../perl5/lib/perl5/Dancer/Logger/Console.
pm line 9

Example:

get '/foo' => sub {
    debug "testing™";
    return bar;
};

evoyy avatar Sep 08 '13 00:09 evoyy