Hi,

I use this client:

curl -d 'someKey=ۆ' 'http://192.168.1.10:8080/restletTest/hello'

and a restlet 1.x or 2.0 running inside tomcat.

The outcome are corrupted characters.

This hack would resolve it:
         Form form1 = request.getEntityAsForm();
         Set<String> names1 = form1.getNames();
         for (String name : names1) {
             System.out.println("query1: " + name + "=" + new
String(form1.getFirstValue(name).getBytes("ISO-8859-1"), "UTF-8"));
         }


Having a plain little servlet, the UTF-8 is properly transferred.

Please help

Thanks
Marcel

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2743387

Reply via email to