Archived Forum Post

Index of archived forum posts


Strange characters in HTML attachment

Aug 07 '16 at 11:18


I use Chilkat MailMan to send Email with SMTP. After upgrading to version 9.5.0, strange characters appear in HTML attachments. The attachment file is Unicode encoded.

Here is an example of a fragemnt of the HTML attachment before sending:

.leftoff { background-image:url(/priimages/left-off30.png); background-repeat:no-repeat; padding-left:10px; padding-right:0px; vertical-align:top; cursor:pointer; }

Here is the same fragemnt in the received email:

.leftoff { background-image:url(/priimages/♧㌣㐸〰; background-repeat:no-repe♡㔣㜴㐸; padding-left:10♰㔣㌶㬲ഀ਀ऀ瀀愀搀搀椀渀最ⴀ爀椀最栀琀㨀 瀀⌦㘵㈳; vertical-align:t♯㌣㐸〰; cursor:point♥㐣㔶㈹; }

as you can see, the last two characters before semicolons are replaced with strange characters.

This doesn't happen sending the same email + attachment using previous Chilkat version (I don't know exactly the version number).

I use AddFileAttachment to add the attachment from File (the file is unicode). I tried using SetAttachmentCharset with different values but couldn't resolve this problem.

Thanks, Avia