xdmp:set-response-encoding( $encoding as xs:string ) as empty-sequence()
Sets the response encoding.
xdmp:set-response-encoding("ISO-8859-1")