content-encoding

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

Home >  Functions > Function Library Reference > mime >

content-encoding

The content-encoding function returns the character encoding of the MIME entity supplied as argument. In case of an HTTP message, this is the value of the charset parameter from the Content-Type header.

mf-func-content-encoding

 

Arguments

Name

Type

Description

entity

mf:MimeEntity

The MIME entity content.

 

Example

If a mapping calls a Web service that returns a Content-Type header as text/json; charset=utf-8, then the function output is utf-8.

mf-func-content-encoding-example


© 2019 Altova GmbH