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.
Languages
Built-in.
Parameters
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.