Quite interesting. The simple script
=== cut mojolog ===
#!/usr/bin/env perl
use strict;
use utf8;
use Mojo::Log;
my $log = new Mojo::Log;
print "Просто принт\n";
$log->info('тест лога');
=== cut mojolog ===
yields fine results on all my servers but one.
On it, I'm getting
% perl mojolog
Просто принт
[Sat Oct 6 15:22:43 2018] [info] �е�� лога
The second line is clearly wrong and seems to be badly encoded. Same version of OS, Perl, Mojolicious, same set of environment variables. What else could influence unicode processing?
суббота, 6 октября 2018 г., 13:35:48 UTC+3 пользователь Alex Povolotsky написал: