DotNetOpenMail 0.5.7 (beta)

QPEncoder.EncodeString Method (String, Encoding, Boolean, Int32)

Encode the string in quoted printable format

[Visual Basic]
Public Function EncodeString( _ 
   ByVal sourceString As String, _ 
   ByVal charset As Encoding, _ 
   ByVal forceRFC2047 As Boolean, _ 
   ByVal offset As Integer _ 
) As String
[C#]
public string EncodeString(
   string sourceString,
   Encoding charset,
   bool forceRFC2047,
   int offset
);
[C++]
public: String* EncodeString(
   String* sourceString,
   Encoding* charset,
   bool forceRFC2047,
   int offset
);
[JScript]
public function EncodeString(
   String sourceString,
   Encoding charset,
   bool forceRFC2047,
   int offset
): String;

Parameters

sourceString
The source string
charset
The outgoing charset
forceRFC2047
Force encoding, even if not required by qp RFC
offset
The total characters outside the encoding. This is used to figure out how long the line will be after encoding.

Return Value

the encoded string

See Also

QPEncoder Class | DotNetOpenMail.Encoding Namespace | QPEncoder.EncodeString Overload List