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.
In reply to Re^4: Distinguishing text from binary data
by gothic_mallard
in thread Distinguishing text from binary data
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |