DecodeQuotedPrintable

From Xojo Documentation
Jump to: navigation, search
Method

Decodes into “normal” text a string that has been encoded by EncodeQuotedPrintable.


Syntax

result=DecodeQuotedPrintable(str [, encoding])
Changed 2005r1
Part Type Description
result String The result of processing str.
str String The string expression to be decoded back to its original form.
encoding TextEncoding Optional: The text encoding of the passed string.

If you pass an encoding, is has the same effect as calling DefineEncoding on the returned String.

Notes

DecodeQuotedPrintable converts text representations of unprintable characters (i.e., control characters, returns and tabs) back into their original form. It is designed for handling email or usenet messages. It undoes the encoding done by EncodeQuotedPrintable.

The DecodeQuotedPrintable function performs the function in reverse.

DecodeQuotedPrintable can decode strings in which hexadecimal values are represented in lowercase as well as the standard uppercase.


Example

The following example takes the contents of TextArea1 and decodes it. If TextArea1 contains Return character, EncodeQuotedPrintable encodes them and DecodeQuotedPrintable decodes them.

dim s as string
s=EncodeQuotedPrintable(textarea1.text)

textarea2.text=DecodeQuotedPrintable(s)

See Also

EncodeQuotedPrintable function.

Personal tools
Namespaces

Variants
Actions
Main
Content
Starting Out
Dig Deeper
More Help
Toolbox
About