If I read this correctly, it sounds like your client is posting the data in
ISO-8859-1 format.

The Form constructor you need is available in the Restlet 1.1 snapshots.
With this you can say:

Form form = new Form(request.getEntity(),CharacterSet.ISO_8859_1);

You can read the API documentation here.
http://www.restlet.org/documentation/1.1/api/org/restlet/data/Form.html

Note: the ISO-8859-1 encoding is probably going to do bad things if the data
contains Chinese characters, so I would get this fixed if you can.  If the
client is a browser, unless told otherwise, it typically posts a form back
in the same character set as the page where the request originates.  So if
your server application generated the form (or the page which contains AJAX
code that does the POST) you may be able to influence this by setting the
outgoing character set on the page.

- Rob

Reply via email to