You need to sign in to do that
Don't have an account?
Yishay1
Encoding an attachment as ANSI
Hi,
I need to encode an attachment in ANSI format.
I thought this will work:
But when I download the attachment it was still UTF-8.
Any ideas?
Thanks in advance,
Yishay
I need to encode an attachment in ANSI format.
I thought this will work:
Attachment att = new Attachment (
ParentId = parentObjectId,
Name = fileName,
Body = Blob.valueOf(body),
ContentType = 'text/plain; charset=ansi'
);
ParentId = parentObjectId,
Name = fileName,
Body = Blob.valueOf(body),
ContentType = 'text/plain; charset=ansi'
);
But when I download the attachment it was still UTF-8.
Any ideas?
Thanks in advance,
Yishay
Thanks,
Yishay
Can you please help?
Thank you!