Skip to Content

How to make an attachment in ANSI format?

Dear experts,

I have to create a certain text file containing diacritic letters in the attachment folder via absl, for example:

var document		: Document;
var binaryobject	: BinaryObject;

var bydfak = "20180206;převodní příkaz;154314.98;";

document.TypeCode.content = "10001";
document.Name = "bydfak.txt";
document.AlternativeName = document.Name;
document.Description.content = document.Name;
document.Description.languageCode = Library::LanguageCode.ParseFromString ( "CS" );

binaryobject.content = Binary.ParseFromString ( bydfak );
binaryobject.fileName = document.Name;
binaryobject.format =  "";
binaryobject.mimeCode = "text/plain";

this.AttachmentFolder.CreateFile ( document.TypeCode, document.Name, document.AlternativeName, document.Description, binaryobject );

When I download the file it is always saved in utf-8 format, but I need to save the file in the simple ANSI format (cp1250). Is there any way to do it?

Thank you.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers