filenames with special characters
Rikard Froberg <[email protected]> Tue, 04 Jan 2005 00:06:50 +0100
| Newsgroups | gmane.comp.java.linux.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, We have upgraded from Blackdown-1.3.1_02b-FCS (on debian stable) to Blackdown-1.4.2-01 on debian sarge. After that, tomcat can't read files with accented characters (e.g. é, è, à etc) in their filenames, and also it can't read files with åäö (Swedish characters). Java itself (running alone outside tomcat) handles this with $ LANG=en_US java <class> (running on the command line) but tomcat seems to care less. I know this might be a tomcat question, but cusious as I am, I investigated the way charsets is handled in 1.4, and found out about charsets.jar. Looking in that archive, I found these: $ jar -tf /usr/lib/j2se/1.4/jre/lib/charsets.jar |grep ISO_8859_[0-9].class sun/nio/cs/ext/ISO_8859_3.class sun/nio/cs/ext/ISO_8859_6.class sun/nio/cs/ext/ISO_8859_8.class but no ISO_8859_1. Why is that? (just out of curiosity). On our test server, running Blackdown-1.3.1_02b-FCS (on woody) Java on the command line handles filenames with åäö (Swedish chars) and accented chars in the filename without the LANG= ploy. What might be wrong/different? Thanks in advance Rikard ---------------------------------------------------------------------- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]