response: 500 Wide character in print at...Dancer/Logger/Console.pm line 8. #905

Open
chenjch opened this Issue Mar 28, 2013 · 6 comments

Comments

Projects
None yet
2 participants
@chenjch

chenjch commented Mar 28, 2013

I log a message '你好', response: 500

Warning caught during route execution: Wide character in print at /usr/local/lib/perl5/site_perl/5.8.9/Dancer/Logger/Console.pm line 8.

@racke

This comment has been minimized.

Show comment
Hide comment
@racke

racke Mar 28, 2013

Member

On 03/28/2013 11:03 AM, chenjch wrote:

I log a message '你好', response: 500

Warning caught during route execution: Wide character in print at /usr/local/lib/perl5/site_perl/5.8.9/Dancer/Logger/Console.pm line 8.


Reply to this email directly or view it on GitHub:
#905

chenjch, can you please show your exact code? Do you use "use utf8" in your code?

Also, the support for UTF-8 in Perl 5.8. wasn't as good as it is in recent Perl versions.

Regards
Racke

LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team

Member

racke commented Mar 28, 2013

On 03/28/2013 11:03 AM, chenjch wrote:

I log a message '你好', response: 500

Warning caught during route execution: Wide character in print at /usr/local/lib/perl5/site_perl/5.8.9/Dancer/Logger/Console.pm line 8.


Reply to this email directly or view it on GitHub:
#905

chenjch, can you please show your exact code? Do you use "use utf8" in your code?

Also, the support for UTF-8 in Perl 5.8. wasn't as good as it is in recent Perl versions.

Regards
Racke

LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team

@chenjch

This comment has been minimized.

Show comment
Hide comment
@chenjch

chenjch Mar 28, 2013

last 500 exception happen when set logger to console,not happen on file logger config

chenjch commented Mar 28, 2013

last 500 exception happen when set logger to console,not happen on file logger config

@chenjch

This comment has been minimized.

Show comment
Hide comment
@chenjch

chenjch Mar 28, 2013

and i don't use utf8

chenjch commented Mar 28, 2013

and i don't use utf8

@chenjch

This comment has been minimized.

Show comment
Hide comment
@chenjch

chenjch Mar 28, 2013

another problem
i request a url:
http://192.168.85.148:3000/hello/你好大方的发放

the log write:
360 20130328185859

chenjch commented Mar 28, 2013

another problem
i request a url:
http://192.168.85.148:3000/hello/你好大方的发放

the log write:
360 20130328185859

@racke

This comment has been minimized.

Show comment
Hide comment
@racke

racke Mar 28, 2013

Member

On 03/28/2013 11:54 AM, chenjch wrote:

and i don't use utf8


Reply to this email directly or view it on GitHub:
#905 (comment)

Again, please send your code. Otherwise I can't reproduce it.
A simple test case would be fine.

Regards
Racke

LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team

Member

racke commented Mar 28, 2013

On 03/28/2013 11:54 AM, chenjch wrote:

and i don't use utf8


Reply to this email directly or view it on GitHub:
#905 (comment)

Again, please send your code. Otherwise I can't reproduce it.
A simple test case would be fine.

Regards
Racke

LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team

@chenjch

This comment has been minimized.

Show comment
Hide comment
@chenjch

chenjch Apr 1, 2013

get '/hello/:name' => sub {

    info '你好';

    return template 'a', { aaa => '大饭店在哪里' };

};

chenjch commented Apr 1, 2013

get '/hello/:name' => sub {

    info '你好';

    return template 'a', { aaa => '大饭店在哪里' };

};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment