开发者

How to set character encoding to a request in Restlet Framework?

I am using the Restlet Framework to receive and send the data.

//Receiving the Request.
Request helpReq = new Request();

Here is my code where I want to send(set) the character encoding along with the response(helpRes)..

//Respond开发者_如何学Going to the Request
Response helpRes = client.handle(helpReq);


The encoding applies to representations sent along with request. See the Representation.characterSet property and the Request.entity one.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜