BasePropertyEncode Method

This method is used to encode a value for output to a PDI data stream

Definition

Namespace: EWSoftware.PDI.Properties
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public virtual string Encode(
	string data
)

Parameters

data  String
The data string to encode

Return Value

String
The encoded data

Remarks

By default, it can handle Base 64 and Quoted-Printable encoding. For 7-bit and 8-bit encoding, it will escape characters as needed. The method used depends on the current setting of the Encoding property. It can be overridden to support other types of encoding.

For vCard 2.1 and vCalendar 1.0 properties, if a CharacterSet parameter has been specified, the value is converted from the one specified by the DefaultEncoding property to the one specified by the CharacterSet property before encoding it.

See Also