default-encoding

This command specifies the input default encoding.

Syntax

default-encoding encoding

Parameters

encoding
Indicates the default encoding. The default value is urlencoded.
base64
Treats input literally. Adds encoding='base64' to input element.
json
Converts to XML according to the JSONx XML specification.
plain
XML escapes the input.
urlencoded
URL unescapes, then XML escapes the input.
xml
Treats input literally, no processing.

Guidelines

The input conversion map describes the way that an incoming document is expected to be encoded. For each input in a request, the name is compared to the list of rules. Each rule contains a regular expression and the resulting encoding. The first matching regular expression indicates the encoding to be used for the input. If no rules match, the encoding that is specified by the default-encoding property is used.

Examples

  • Create the ICM-1 conversion map with the urlencoded default encoding. Any input that ends with xml is treated as XML. Any input that ends with base64 is treated and tagged as Base64.
    # input-conversion-map ICM-1
    New HTTP Input Conversion Map configuration
    # default-encoding urlencoded
    # rule xml$ xml
    # rule base64$ base64 
  • Specify the default encoding type JSON to the map.
    # input-conversion-map "JSONMAP"
    New HTTP Input Conversion Map configuration
    # default-encoding json