Internet Direct (Indy)
Home
PreviousUpNext
TIdText.IsBodyEncodingRequired Method

Indicates is the message part contains text requiring encoding to represent its contents.

Pascal
function IsBodyEncodingRequired: Boolean;

Boolean - True when textual values cannot be represented using the US-ASCII character set.

IsBodyEncodingRequired is a Boolean function used to determine if the textual message part requires encoding during transport to protect the contents of the message body. IsBodyEncodingRequired returns True when textual values in the message part cannot be represented using the US-ASCII character set. 

IsBodyEncodingRequired examines lines in the Body property to determine if any line contains a character value greater than Decimal 127. 

IsBodyEncodingRequired is used when TIdMessageClient needs to send a content transfer encoding while writing the message part. When IsBodyEncodingRequired returns True, the 8-bit content transfer encoding header is included in the headers for the message part. When IsBodyEncodingRequired returns False, the value in the ContentTransfer property is used in the RFC 2822-compliant message header.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.