Hi All!

Eirikur Hrafnsson just said something in this mail that might be of general interest. Basically the JVM parameter -Dfile.encoding=UTF-8 enables unicode characters in the filestore without any strange fixes or hacks!

I did not do any extensive testing on this but if someone could confirm, then this is very good news for the txfilestore :-)

/jacob

----- Original Message ----- From: "Eirikur Hrafnsson" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[email protected]>
Sent: Monday, January 17, 2005 11:56 AM
Subject: Re: turkish filenames



Hi, I had the same problem with Icelandic and Swedish character and the "solution" is to set the URIEncoding="UTF-8" for connectors in tomcats server.xml

like this:
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
    <Connector port="8090"
               maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"
               enableLookups="false" redirectPort="8443"
acceptCount="100"
               debug="0" connectionTimeout="20000" URIEncoding="UTF-8"
               disableUploadTimeout="true" />

You also have to add the JVM parameter  -Dfile.encoding=UTF-8 to the
JAVA_OPTS variable.
Now with that said not all webdav clients will work well with this
setup because a lot of them use ISO-8859-1 by default.
However to test if the setup is working correctly on windows (at least)
I recommend you download NetDrive and change its preferences to use
UTF-8 encoding.
Novel NetDrive is a free and pretty cool client as it can map a webdav
repository to a windows drive letter.

In Slide 2.2 there said to be better support for detecting the clients
encoding and more options you can set in Slide.properties but I haven't
had time to try it yet

Good luck!

Eirikur S. Hrafnsson, [EMAIL PROTECTED]
Chief Software Engineer
Idega Software
http://www.idega.com


On 17.1.2005, at 09:38, Serkan �zkan wrote:

Hi
I am trying to store files with names including turkish characters but I can't.
My configuration:
- latest version of slide,2.1, downloaded a few days ago.
- JDBCStore, PostgresRDBMSAdapter. Database encoding is unicode.
- using webdavservlet.
- added debug code to org/apache/slide/webdav/WebdavServlet.java to
print request parameters, everything seems fine, characters are
urlencoded properly .
- commented out fixTomcatURL and fixTomcatHeader (because there is a
hardcoded conversion to iso-8859-1, which does not support turkish
characters at all) at org/apache/slide/webdav/util/WebdavUtils.java,
if these could solve encoding problems, but nothing changed.
- request encoding is utf-8
- using tomcat bundle with jboss 3.2.5


Results: all turkish characters at filenames are converted to nonsense
characters.

any suggestions?
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]



Reply via email to