RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSOAPAttachment.Encoding Property

Indicates the encoding (character set) of the body of the attachment.

Pascal
property Encoding: WideString;
C++
__property BSTR Encoding;

Use Encoding to look up or set the encoding type of the attachment's content. When sending an attachment, set this property to indicate the encoding that was used for the source you supply. 

If you supply the attachment data as a string by setting the SourceString property, TSOAPAttachment assumes an encoding of UTF-8 if you do not set the Encoding property. If you supply the attachment data by calling SetSourceFile or SetSourceStream, you must set the Encoding property, as TSOAPAttachment does not have a meaningful default encoding.

Note: Encoding indicates the encoding of the data that the SOAP attachment contains. The application does not automatically use this information to encode or decode that data.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!