RE: Text or binary attachment

"'Skand Bhargava' [email protected] [blat]" <[email protected]>
Newsgroups gmane.mail.blat
Message-ID <444B96AD163345709D1A30D66D1249C3@extensa>
This question has always intrigued me: what harm will it do if all attached files are treated as binary?
 
 -----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Wednesday, October 15, 2014 1:35 PM
To: [email protected]
Subject: [blat] Text or binary attachment


    
  How can I automatically decide if an attachment is text or binary? Usually I read some bytes from the beginning of the attachment file and check for occurence of zero byte. If it is found it will be attached in binary mode else text mode. This way 16-bit Unicode text files (containing zero bytes) are sent as binary attachment. Is it really necessary to distinguisj between text and binary mode?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.