[DUG] Email attachment encoding/decoding
John Bird
johnkbird at paradise.net.nz
Sat Sep 13 16:18:59 NZST 2014
I have a program that sends data via an email attachment, the file data is encoded into ascii text (ie all characters are ASCII and the whole range can be used) and contains CRLF between the lines of data.
Sending and receiving is done via standard email programs, so the encoding/decoding is not done by me.
When the file is received and the attachment saved, I have noticed an oddity – if a line in the sent data occasionally happens to start with a full-stop “.” (ie immediately after the CRLF) then at the other end there appears two full-stops instead of one. Otherwise the attachment arrives the same as sent.
Anyone have ideas why this happens and how to get around this? eg I am wondering if I should replace the CRLF characters with something else so the encoding does not treat it as text.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20140913/21886f7f/attachment.html
More information about the Delphi
mailing list