Method

# DecodeQuotedPrintable

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Decodes into “normal” text a string that has been encoded by `EncodeQuotedPrintable</api/text/encoding_text/encodequotedprintable>`.

## Usage

``` xojo
result = DecodeQuotedPrintable(str, encoding)
```

| Part     | Type                                                 | Description                                                    |
|----------|------------------------------------------------------|----------------------------------------------------------------|
| result   | `String</api/data_types/string>`                     | The result of processing *str*.                                |
| str      | `String</api/data_types/string>`                     | The string expression to be decoded back to its original form. |
| encoding | `TextEncoding</api/text/encoding_text/textencoding>` | Optional: The text encoding of the passed 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</api/text/encoding_text/encodequotedprintable>`.

The <span class="title-ref">DecodeQuotedPrintable</span> function performs the function in reverse.

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

## Sample code

The following code takes the contents of TextArea1 and decodes it. If TextArea1 contains Return character, `EncodeQuotedPrintable</api/text/encoding_text/encodequotedprintable>` encodes them and <span class="title-ref">DecodeQuotedPrintable</span> decodes them.

``` xojo
Var s As String
s = EncodeQuotedPrintable(TextArea1.Text)

TextArea2.Text = DecodeQuotedPrintable(s)
```

## Compatibility

|                       |                               |
|-----------------------|-------------------------------|
| **Project Types**     | Console, Desktop, Mobile, Web |
| **Operating Systems** | iOS, Linux, macOS, Windows    |

<div class="seealso">

`EncodeQuotedPrintable</api/text/encoding_text/encodequotedprintable>` function

</div>
