Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Wide Character in Print Warning

by moritz (Cardinal)
on Oct 09, 2012 at 15:39 UTC ( #998029=note: print w/ replies, xml ) Need Help??


in reply to Wide Character in Print Warning

I am getting "wide character in print" messages when I run this script. There is no wide character in the data

Maybe not in the data you get from the database, but surely in the data you print. You find it with something like

binmode STDOUT, ':encoding(UTF-8)'; print $str =~ /([^\0-\177]+)/g, "\n";

There are lots of things that can turn ASCII-Data into non-ASCII data, including Encode::decode, JSON decoding and chr.


Comment on Re: Wide Character in Print Warning
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998029]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2014-08-22 02:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (145 votes), past polls