(rfc quoted-printable) - Base 64 encode and decode library

Library (rfc quoted-printable)

This library provides quoted printable encoding and decoding procedures.

Encoding procedures

bv must be a bytevector.

Encodes given bytevector to quoted printable encoded bytevector.

The keyword argument line-width specifies where the encode procedure should put linefeed. If this is less than 1 or #f, encoder does not put linefeed.

If the keyword argument binary? is not #f, then the procedure encodes #x0a and #x0b to =0A and =0D respectively.

Convenient procedure for string.

Encodes given string to quoted printable encoded string.

The keyword argument transcoder is used to convert given string to bytevector. The converted bytevector will be passed to the quoted-printable-encode procedure. The default is utf-8 codec with NONE eol style.

Decoding procedures

bv must be a bytevector.

Decode quoted printable encoded bytevector to original bytevector.

Convenient procedure.

Decode quoted printable encoded string to original string. The procedure is using quoted-printable-decode.

The keyword argument specifies how to convert the decoded bytevector to string. If this is #f, the procedure returns raw bytevector.