No file is created by the filestore!
German letters and danish letters works fine for me too - and they are also supported by the codepage.
To avoid these problems, why not save the files in escaped UTF-8 codes - that way wee always know that is will work?!?
Hmmm. Escaped? Like URL encoded? This might blow up the length quite a bit. As I know of file systems having at most 255 characters per path (like the ones both of us use) this may be undesirable for the default application. What about adding a switch for this and make it configurable?
Anyway, to see if this really fixes it, please apply the patch for FileResourceManager attached and see if it works.
Thanks again :)
Oliver
Index: FileResourceManager.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/stores/org/apache/slide/store/txfile/rm/impl/FileResourceManager.java,v
retrieving revision 1.5
diff -u -r1.5 FileResourceManager.java
--- FileResourceManager.java 26 Nov 2003 11:13:59 -0000 1.5
+++ FileResourceManager.java 28 Jan 2004 14:18:05 -0000
@@ -74,6 +74,8 @@
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
@@ -965,6 +967,11 @@
String path = "";
if (pathObject != null) {
path = pathObject.toString();
+ try {
+ path = URLEncoder.encode(path, "UTF-8");
+ } catch (UnsupportedEncodingException e) {
+ }
+ System.out.println("This is how the path looks like now: "+path);
if (path.length() > 0 && path.charAt(0) != '/' && path.charAt(0) != '\\')
{
path = "/" + path;
}
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
