Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

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


in reply to Re^2: How to tell if a stream is already in UTF8 mode?
in thread How to tell if a stream is already in UTF8 mode?

The lower level layers 'know', and will emit a warning if they detect chars > 255 on a stream NOT marked as UTF8, AND will not encode chars between 128 - 255, as UTF8 unless the stream was previously marked as UTF8.

The lower level always expects bytes. (Files are blocks/streams of bytes.) It will ALWAYS emit a warning if it detects chars >255.

  • Comment on Re^3: How to tell if a stream is already in UTF8 mode?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1069407]
help
Chatterbox?
and dust plays in a shaft of sunlight...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2017-09-20 08:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (234 votes). Check out past polls.

    Notices?