Mashups in EMML : Advanced Mashup Techniques : Setting the Mashup Response Character Encoding : Setting the Character Encoding in the Response XML Declaration
Setting the Character Encoding in the Response XML Declaration
If the response is generally going to be returned in an XML format, the XML declaration <?xml version="1.0"?> in the response also has an optional encoding property. You can define what character encoding the MashZone NextGen Server uses for the result using the output-encoding attribute in the <output> statement. This also sets the encoding property in the XML declaration.
<mashup name="myMashup"
xmlns="http://www.openmashup.org/schemas/v1.0/EMML"
xsi:schemaLocation="http://www.openmashup.org/schemas/v1.0/EMML/
../xsd/EMMLPrestoSpec.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<output name="result" type="document" output-encoding="ISO-8859-1"/>
...
<assign fromexpr="$someVar/books/genre[1]"
outputvariable="$result"/>
</mashup>
See Commonly Supported Output Character Encodings for some of the most commonly used characters encoding values.
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback