XForms/Encoding Parameters

From Wikibooks, open books for an open world
< XForms
Jump to: navigation, search

Motivation[edit]

When you submit data to a web service you want to change the way that parameters are encoded.

Method[edit]

Changing the Separator Character[edit]

By default the separator character is a semicolon. You can change it to be an ampersand by adding the following attribute to the submission element:

  separator="&amp;"

Note that the ampersand must be escaped.

(09 MAR 2009 the default was changed to ampersand in the official xsd-file)

Changing the URL encoding Parameter[edit]

You can also change the way that special characters are encoded by using the encoding attribute.

The options are any of the character encoding systems such as:

encoding="ISO-8859-1"

encoding="UTF-16"

Discussion[edit]

Next Page: Changing Namespaces in Submission | Previous Page: Submit

Home: XForms