MOVE /files/test HTTP/1.1 Host: localhost:82 Connection: TE TE: trailers Destination: http://localhost:82/files/test%c3%a9%c3%a0%c3%b9
/jacob
PS: A nice little TCP trace program: http://www.pocketsoap.com/tcpTrace/
----- Original Message ----- From: "Laurent Michenaud" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <slide-user@jakarta.apache.org>
Sent: Wednesday, May 18, 2005 9:38 AM
Subject: RE: Binding store & rename & accents
I have already configured -Dfile.encoding=UTF-8.
I have seen that some methods need the parameters to be UTF-8 encoded, others don't.
The move method doesnot need the parameters to be encoded.
I don't have the problem with the standard store.
-----Message d'origine----- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 mai 2005 09:32 À : Slide Users Mailing List Objet : Re: Binding store & rename & accents
If you are using the files based store and windows then you have to have following parameter on you java machine -Dfile.encoding=UTF-8 - otherwise java will use local characterset instead of unicode in IO operations.
I am not familiar with the client lib, but I don't think that lib will do the UTF-8 conversion for you. If I am correct the you will have to change "/slide/files/testéàù" to "/slide/files/test%c3%a9%c3%a0%c3%b9".
/jacob
----- Original Message ----- From: "Laurent Michenaud" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <slide-user@jakarta.apache.org>
Sent: Wednesday, May 18, 2005 9:06 AM
Subject: RE: Binding store & rename & accents
Slide 2.1 Encoding : UTF-8 Client : Java Webdavlib Store : BindingStore
The code :
HttpURL oHttpURL = new HttpURL("http://localhost:8080/slide"); oHttpURL.setUserinfo(SLIDE_ADMIN, SLIDE_PASSWORD); WebdavResource oWebdavResource = new WebdavResource(oHttpURL); oWebdavResource.startTransaction(SLIDE_ADMIN, SLIDE_TIMEOUT ); if ( oWebdavResource.moveMethod( "/slide/files/test", "/slide/files/testéàù")) { oWebdavResource.commitTransaction(); } else oWebdavResource.abortTransaction(); oWebdavResource.close();
-----Message d'origine----- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 mai 2005 08:57 À : Slide Users Mailing List Objet : Re: Binding store & rename & accents
Sounds like an encoding problem!
What version of slide are you using? What client? What encoding have you configured?
/jacob
----- Original Message ----- From: "Laurent Michenaud" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <slide-user@jakarta.apache.org>
Sent: Tuesday, May 17, 2005 12:18 PM
Subject: Binding store & rename & accents
Hi,
I use the binding store.
If I try to rename a resource and the new resource name contains accents, then
my resource disappears. I can't see it anymore.
In the console, I can see when I access the parent folder of my resource :
http-8081-Processor20, 17-mai-2005 12:17:31, root, GET, 500 "Internal Server Error", 16 ms, /files/workspaces
Any idea ?
Thanks
--------------------------------------------------------------------- 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]
--------------------------------------------------------------------- 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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]