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 написал: > > Hello > > How do I send UTF-8 constants to Mojo::Log? It forcefully encodes > everything so UTF-8 goes with double encoding and unreadable. Trying to > decode UTF-8 cat > > $log->info(decode('UTF-8', 'тест лога')); > > results in > > Use of uninitialized value $_[0] in join or string at > /usr/local/lib/perl5/site_perl/Mojo/Log.pm line 55. > > Looks like something is wrong... > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To post to this group, send email to mojolicious@googlegroups.com. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.