• Yishay Haspel
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi,

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'
        );

But when I download the attachment it was still UTF-8.
Any ideas?
Thanks in advance,
Yishay