SunOne filename encoding problem
Hi All,
I have posted it to another forum, but probably it fits more here, since I think (hope :) ) it is a Web Server configuration problem.
Probably a newby question, but I am struggling with this for 2 days now.
I have to serve some files with latin2 characters (őű) with Sun ONE Web Server 6.1 on a solaris 9 sparc machine.
The filenames are urlencoded, and arrive correctly to the server. In the error log I see the following:
"[18/Jul/2007:12:33:09] warning (25039): for host 10.12.254.254 trying to GET /naf/naf_files/File/Mappa_Üßóþà ;şĂÝå/ while trying to GET /naf/naf_files/File/Mappa_őű/, send-file reports: HTTP4142: can't find /opt/SUNWwbsvr-naf/https-naf/webapps/https-naf/naf/naf_files/File/Mappa_Ă& #347;ßóþúĂÝà 260;/ (File not found)"
For me this means, that the server encoded the filename correctly from the url, but cannot find the file, because it assumes the file system uses UTF-8 characters.
I have tried to set the JVM variable: -Dfile.encoding=ISO-8859-2 without luck. The log is the same.
I have changed the "International Characters->Character set" to ISO-8859-2, but it did not help either. (After more thought I do not think it should anyway :) )
I do not have access to the server console, but if I am reasonably sure that changing the locale settings will solve the problem, I can get the system administrators to do that for me. The current locale is unset ("C")
Will changing the locale help? Shall I change it to something like "*.ISO-8859-2"?
Any other idea?
Thanks,
Pter

