Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: The Queensrÿche Situation

by Rodster001 (Pilgrim)
on Oct 19, 2014 at 21:38 UTC ( [id://1104349]=note: print w/replies, xml ) Need Help??


in reply to Re^3: The Queensrÿche Situation
in thread The Queensrÿche Situation

I can actually answer this now :) Take a look below, hopefully that will clear it up.
#!/usr/bin/env perl use strict; use warnings; use Encode; binmode STDOUT, ":utf8"; my $string = qq(Queensrÿche); print qq($string\n); Encode::is_utf8($string)? print " - is utf8\n" : print " - is not utf8 +\n"; use utf8; $string = qq(Queensrÿche); no utf8; print qq($string\n); Encode::is_utf8($string)? print " - is utf8\n" : print " - is not utf8 +\n";
Ouput:
Queensrÿche - is not utf8 Queensrÿche - is utf8

Replies are listed 'Best First'.
Re^5: The Queensrÿche Situation
by karlgoethebier (Abbot) on Oct 21, 2014 at 07:56 UTC
    "...hopefully that will clear it up."

    Thank you Rodster001 for your reply.

    Unfortunately this doesn't explain why the One-Liner prints correctly.

    But perhaps i got yet another mental block ;-)

    Best regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-19 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found