Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Orbeon test-case of query string encoding bug. View http://localhost:8080/ops/encoding-test/?message=it%E2%80%99s%20a%20message to trigger error
<p:config xmlns:p="" xmlns:xdb="" xmlns:xsl="" xmlns:oxf="">
<p:param name="instance" type="input" debug="model in"/>
<p:param name="data" type="output" debug="model out"/>
<p:processor name="oxf:request">
<p:input name="config">
<p:output name="data" id="request" ref="data" debug="request parameters"/>
<config xmlns="">
<page id="encoding-test" path-info="/encoding-test/" model="model.xpl" view="view.xml" />
<epilogue url="oxf:/config/epilogue.xpl"/>
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns:xforms=""
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<xforms:model id="main-model">
<xforms:instance id="main" src="input:data"/>
<h1>Encoding test!</h1>
<xforms:output value="instance('main')/parameters/parameter[name eq 'message']/value"></xforms:output>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.