Can u tell me how to do that ? What do u use to espace a string ? I don't really understand.
If I look at the BindMethod in the Webdavlib, we can see: BindMethod method = New BindMethod(URIUtil.encodePath(existingBinding),URIUtil.encodePath(newBinding)); So the segment is well encoded in UTF-8. -----Message d'origine----- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : vendredi 20 mai 2005 11:35 À : Slide Users Mailing List Objet : Re: Bind method and accents Are you sure that the DAV:segment should be escaped? Normally only the href elements are escaped. Try to send the request with the DAV:segment utf-8 encoded but not escaped. /jacob ----- Original Message ----- From: "Laurent Michenaud" <[EMAIL PROTECTED]> To: "Slide Users Mailing List" <slide-user@jakarta.apache.org> Sent: Friday, May 20, 2005 10:29 AM Subject: Bind method and accents Bind with accents are not working well. I have created a resource /slide/files/testé Then i created a bind named /slide/files/testéé In the internet browser, i can see : test%C3%A9%C3%A9/ <http://localhost:8081/slide/files/test%25C3%25A9%25C3%25A9> The Java code : HttpURL oHttpURL = new HttpURL("http://localhost:8081/slide/"); oHttpURL.setUserinfo("root", "root"); WebdavResource r_oWebdavResource = new WebdavResource(oHttpURL); r_oWebdavResource.bindMethod( "/slide/files/testé", "/slide/files/testéé"); oWebdavResource.close(); The http request : <?xml version="1.0" encoding="utf-8" ?><D:propfind xmlns:D="DAV:"><D:prop><D:displayname/><D:getcontentlength/><D:getcontenttype/><D:resourcetype/><D:getlastmodified/><D:lockdiscovery/></D:prop></D:propfind>BIND /slide/files HTTP/1.1 Authorization: Basic ************ User-Agent: Jakarta Commons-HttpClient/3.0-rc2 Host: localhost:8082 Cookie: $Version=0; JSESSIONID=1FA963D1E55AA8CC5D0640E528DCFE19; $Path=/slide Content-Length: 150 Content-Type: text/xml; charset=utf-8 Overwrite: F <?xml version="1.0" encoding="utf-8" ?><D:bind xmlns:D="DAV:"><D:segment>test%C3%A9%C3%A9</D:segment><D:href>/slide/files/test%C3%A9</D:href></D:bind> All other methods( mkcol, move, renamed...) work well with accents. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]