Packages / rupm

rs-encoding-quoted-printable 0.1.0

Quoted-printable (RFC 2045) encode and decode with soft line breaks

Install

cargo add rs-encoding-quoted-printable --registry rupm

In Ruststudio: Packages, search for rs-encoding-quoted-printable, Install.

Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-23.

Versions

README

# rs-encoding-quoted-printable

Quoted-printable (RFC 2045) encode and decode with soft line breaks.

## Install

`rupm add rs-encoding-quoted-printable` (or `cargo add rs-encoding-quoted-printable --registry rupm`).

## Usage

```rust
let e = rs_encoding_quoted_printable::encode("café".as_bytes()); // "caf=C3=A9"
let d = rs_encoding_quoted_printable::decode(&e)?;
```

## API overview

- `encode(&[u8]) -> String`: encodes with 76-column soft breaks and CRLF line endings.
- `decode(&str) -> Result<Vec<u8>, QpError>`: handles `=XX` escapes and soft breaks.
- `QpError`: invalid escape position.