debug vs wide character in print
Hello all, when `debug $something` in development environment with log to console I have russian (utf8) symbols in $something sometimes. Dancer app crashes when log it with "wide character in print [...]". How to log such strings? ps: last version of Dancer1 use utf8; perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for i686-linux-gnu-thread-multi-64int -- Best Regards, Nick Knutov
Le 19/02/2014 10:22, Nick Knutov a écrit :
Hello all,
when `debug $something` in development environment with log to console I have russian (utf8) symbols in $something sometimes. Dancer app crashes when log it with "wide character in print [...]".
How to log such strings?
ps: last version of Dancer1 use utf8;
perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for i686-linux-gnu-thread-multi-64int
Try use utf8::all use utf8 does not modify the file mode; Nicolas
On 02/19/2014 10:32 AM, nicolas rennert wrote:
Le 19/02/2014 10:22, Nick Knutov a écrit :
Hello all,
when `debug $something` in development environment with log to console I have russian (utf8) symbols in $something sometimes. Dancer app crashes when log it with "wide character in print [...]".
How to log such strings?
ps: last version of Dancer1 use utf8;
perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for i686-linux-gnu-thread-multi-64int
Try use utf8::all
use utf8 does not modify the file mode;
I suspect that is a problem with Data::Dumper - https://metacpan.org/pod/Data::Dumper::AutoEncode is supposed to fix that. Regards Racke -- LinuXia Systems => http://www.linuxia.de/ Expert Interchange Consulting and System Administration ICDEVGROUP => http://www.icdevgroup.org/ Interchange Development Team
Thanks, `use utf8::all` helps. 19.02.2014 15:32, nicolas rennert пишет:
Le 19/02/2014 10:22, Nick Knutov a écrit :
Hello all,
when `debug $something` in development environment with log to console I have russian (utf8) symbols in $something sometimes. Dancer app crashes when log it with "wide character in print [...]".
How to log such strings?
ps: last version of Dancer1 use utf8;
perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for i686-linux-gnu-thread-multi-64int
Try use utf8::all
use utf8 does not modify the file mode;
Nicolas _______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
-- Best Regards, Nick Knutov http://knutov.com ICQ: 272873706 Voice: +7-904-84-23-130
participants (3)
-
Nick Knutov -
nicolas rennert -
Stefan Hornburg (Racke)