Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2016-10-25 03:27 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (313 votes). Check out past polls.