I checked Form.java via
SVN:http://restlet.tigris.org/svn/restlet/trunk/modules/org.restlet/src/org/restlet/data/Form.java
But it's not been modified yet.It's last modify time:Sun Jan 13
05:25:12 CST 2008.

And I downloaded
restlet-1.1-SNAPSHOT:http://maven.restlet.org/org/restlet/org.restlet/1.1-SNAPSHOT/org.restlet-1.1-SNAPSHOT-sources.jar
But I didn't find new constructor of Form,just like Rob said:
Form form = new Form(request.getEntity(),CharacterSet.ISO_8859_1);

Why I can't get new one?

On Jan 23, 2008 5:19 PM, Rob Heittman <[EMAIL PROTECTED]> wrote:
>
> 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
>
>



-- 
cleverpig
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
Phone: 010-66415588-1113
MSN: [EMAIL PROTECTED]
QQ: 149291732
Skepe: cleverpigatmatrix
My Facebook ID:cleverpig
My Blog: hihere.sohu.com
My Tags: del.icio.us/cleverpig
My Twitter: twitter.com/cleverpig
My Organization: www.beijing-open-party.org
一些值得关注的唧歪:
  http://jiwai.de/t/jmatrix/
  http://jiwai.de/t/db4o/
  http://jiwai.de/t/matrix-community/

Reply via email to