如何在Restlet Framework中为请求设置字符编码?
我正在使用 Restlet 框架来接收和发送数据。
//Receiving the Request.
Request helpReq = new Request();
这是我的代码,我想在其中发送(设置)字符编码以及响应(helpRes)..
//Responding to the Request
Response helpRes = client.handle(helpReq);
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)..
//Responding to the Request
Response helpRes = client.handle(helpReq);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该编码适用于与请求一起发送的表示。请参阅 Representation.characterSet 属性和 Request.entity 属性。
The encoding applies to representations sent along with request. See the Representation.characterSet property and the Request.entity one.