Encoding UtilsTo Quoted Printable Method
This method is used to encode the specified string as Quoted-Printable text
Definition
Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
The Quoted-Printable encoded string
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
C#
public static string? ToQuotedPrintable(
this string? encode,
int foldWidth
)VB
<ExtensionAttribute>
Public Shared Function ToQuotedPrintable (
encode As String,
foldWidth As Integer
) As StringC++
public:
[ExtensionAttribute]
static String^ ToQuotedPrintable(
String^ encode,
int foldWidth
)F#
[<ExtensionAttribute>]
static member ToQuotedPrintable :
encode : string *
foldWidth : int -> string Parameters
- encode String
- The string to encode.
- foldWidth Int32
- If greater than zero, line folds with soft line breaks are inserted at the specified interval.
Return Value
StringThe Quoted-Printable encoded string
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Remarks
Character values 9, 32-60, and 62-126 go through as-is. All others are encoded as "=XX"
where XX is the 2 digit hex value of the character (i.e. =0D=0A for a carriage return and line feed).