mime-content-encode

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Expression Functions > MIME Expression Functions >

mime-content-encode

Applies encoding as Content-Transfer-Encoding to stream s.

 

The supported encodings are:

 

Empty string: Equivalent to "binary".
"base64": Base64 encoding
"quoted-printable": Quoted printable encoding
Any other string: No encoding

 

The function decodes the stream using the current Content-Transfer-Encoding and re-encodes it using the specified encoding. The new Content-Transfer-Encoding is stored in the headers of the resulting stream.

 

The function does not guarantee that errors in the source encoding are reported.

 

Signature

mime-content-encode(s:stream, encoding:string="") -> stream

 

Parameters

Name

Type

Description

s

stream

Specifies the input stream.

encoding

string

Specifies the encoding to apply. By default, this is an empty string.


© 2019 Altova GmbH