开发者

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

开发者 https://www.devze.com 2023-04-07 05:38 出处:网络
I am using the Restlet Framework to receive and send the data. //Receiving the Request. Request helpReq = new Request();

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

精彩评论

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

关注公众号