Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How to tell if a stream is already in UTF8 mode?

by ikegami (Pope)
on Jan 05, 2014 at 18:43 UTC ( #1069406=note: print w/ replies, xml ) Need Help??


in reply to How to tell if a stream is already in UTF8 mode?

Your design is awful, but you can use PerlIO::get_layers($fh) to look for the utf8 layer.
Comment on Re: How to tell if a stream is already in UTF8 mode?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2016-04-30 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (441 votes). Check out past polls.