Dear all, On trying to upload a file whose name contains UTF-8 characters in Windows, the server side reads question marks instead, below is the code used. However, it works fine when submitting the request from IE7. Any idea about how to change the encoding? Thanks a lot for your help. -Ahmed ---------------------------------------------------------------------------------- File f = ........; PostMethod filePost = new PostMethod("http://localhost/url/upload"); Part[] parts = {new FilePart(f.getName(), f)}; filePost.setRequestEntity(new MultipartRequestEntity(parts, filePost.getParams())); HttpClient client = new HttpClient(); int status = client.executeMethod(filePost);
---------------------------------------------------------------------------------- __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com