Skip to Content
0

How to make an attachment in ANSI format?

Dec 19, 2017 at 09:44 AM

49

avatar image

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.Clear();
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.Clear();
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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers