Re: [Mojolicious] Re: Mojo::Log and UTF-8

2020-10-31 Thread kon...@gmail.com
Hi. Ok, data is encoded from UTF-8 into bytes when I log a message, but when this data is printed to STDERR How make it decoded from bytes to UTF-8 back? my terminal supports UTF-8 and I want see nice messages instead of ХабРOn Wednesday, October 10, 2018 at 7:08:03 PM UTC+3 gri...@gmail.com

Re: [Mojolicious] Re: Mojo::Log and UTF-8

2020-10-31 Thread kon...@gmail.com
I do nothing, except: $app->log->info('тест лога'); and get at console: [Sat Oct 6 15:22:43 2018] [info] Ñ�еÑ�Ñ� лога Should I configure console or add some options to app? On Saturday, October 31, 2020 at 6:16:55 PM UTC+2 Sebastian Riedel wrote: > Ok, data is encoded from UTF-8 into by

Re: [Mojolicious] Re: Mojo::Log and UTF-8

2020-10-31 Thread kon...@gmail.com
I found a problem. Some module did: binmode STDOUT, ':encoding(UTF-8)'; binmode STDERR, ':encoding(UTF-8)'; and, probably, when STDERR was redirected to STDOUT by Mojo::Log then double encoding occur. Is it worth to check that STDERR and STDOUT have not same layers before redirecting? On Satu