Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 having an uproarious good time at the Monastery: (14)
As of 2014-07-10 13:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (211 votes), past polls