Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: Distinguishing text from binary data

by gothic_mallard (Pilgrim)
on Oct 05, 2004 at 11:52 UTC ( #396549=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Distinguishing text from binary data
in thread Distinguishing text from binary data

I'd tend to agree that the simplest course would probably be to check the headers that came with the data - they should give you the content-type as well as the encoding without you having to make assumptions about what makes the code binary or otherwise.

--- Jay

All code is untested unless otherwise stated.


Comment on Re^4: Distinguishing text from binary data

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2014-09-20 07:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (157 votes), past polls