Method

# EncodeQuotedPrintable

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

## Description

Converts a `String</api/data_types/string>` into quoted-printable format.

## Usage

``` xojo
result = EncodeQuotedPrintable(str)
```

| 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 converted. |

## Notes

EncodeQuotedPrintable converts unprintable characters (i.e., control characters, returns and tabs) into hexadecimal. It is designed for handling email or usenet messages.

The `DecodeQuotedPrintable</api/text/encoding_text/decodequotedprintable>` function performs the function in reverse.

## Sample code

The following example encodes the text in a `TextArea</api/user_interface/desktop/desktoptextarea>`, which can have return characters.

``` xojo
Var printString As String = "Hello" + EndOfLine + "World"
Var s As String
s = EncodeQuotedPrintable(printString)
' s is "Hello=0AWorld"
```

## Compatibility

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

<div class="seealso">

`DecodeQuotedPrintable</api/text/encoding_text/decodequotedprintable>` function.

</div>
