Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 about the Monastery: (9)
As of 2014-10-01 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (391 votes), past polls