如何在Restlet框架中为请求设置字符编码?

如何在Restlet框架中为请求设置字符编码?,rest,restlet,Rest,Restlet,我正在使用Restlet框架来接收和发送数据 //Receiving the Request. Request helpReq = new Request(); 这是我的代码,我想在其中发送(设置)字符编码以及响应(helpRes) 编码适用于随请求一起发送的表示。请参见Representation.characterSet属性和Request.entity属性 //Responding to the Request Response helpRes = client.handle(helpR

我正在使用Restlet框架来接收和发送数据

//Receiving the Request.
Request helpReq = new Request();
这是我的代码,我想在其中发送(设置)字符编码以及响应(helpRes)


编码适用于随请求一起发送的表示。请参见Representation.characterSet属性和Request.entity属性

//Responding to the Request
Response helpRes = client.handle(helpReq);