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" <[email protected]>
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]
