Dúvida - Restlet

Boa tarde, pessoal.

Estou utilizando o framework Restlet (www.restlet.org) e tenho uma dúvida. Eu uso o Xstream para gerar um xml e quero retornar este xml no response. Mas como faço para setar o character encoding para UTF-8? Na classe response do restlet não há como setar o encoding…

Obrigado!

Bom, consegui resolver. A saber:

		String resultado = VideoFiltro.chamarServico(mapQueryString);
		StringRepresentation xml = new StringRepresentation(resultado, MediaType.TEXT_XML);
		xml.setCharacterSet(CharacterSet.UTF_8);
		response.setEntity(xml);

Abraços!