Kristiany - 2006-09-28

I run the code bellow:

public static WebResponse getResponseFromURI(String uri,
    WebConversation wc, String baseURI) throws SAXException,
    IOException {
   PostMethodWebRequest pmwr = new PostMethodWebRequest(baseURI + uri);
   WebResponse wresp = null;
   wresp = wc.getResponse(pmwr);
   return wresp;
}

After that I try wresp.getText() and the result contains a lot of '?' in the place of some special character like ' ° " ` -

I set the HttpUnitOptions to use ISO-8859-1 (see below) but I've got the same result.

HttpUnitOptions.setDefaultCharacterSet("ISO-8859-1");   

It's seems that httpunit is using UTF-8 and not iso-8859-1... 

I've read that there's a bug in HTTPUnit concerning the encoding... Does someone know how to solve this problem? I need it urgently.

Thanks a lot
Kristiany.