Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-24 Thread Sylvie Perrin
Christopher, André, Christopher Schultz a écrit : And (just to anticipate the next issue), Sylvie, does your program actually need to read the content of the file and do something with that content ? Yeah, remember to use a Reader and specify the character encoding. Yes, my program n

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-22 Thread Sylvie Perrin
André, Thanks to you, my testcase is now running without any exception. André Warnier a écrit : Sylvie Perrin wrote: I just remind that I have these lines in my tomcat auto-start script : LC_ALL=fr_FR export LC_ALL Thuis, you should probably change, to be the same as your own locale

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-22 Thread Sylvie Perrin
André, I follow your "tutorial" and all outputs in Widows Explorer, DOS Command Window and Linux Window are consistents concerning file names display. For locale set under Linux, here is the output: LANG=fr_FR.UTF-8 LC_CTYPE="fr_FR.UTF-8" LC_NUMERIC="fr_FR.UTF-8" LC_TIME="fr_FR.UTF-8" LC_COLL

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-21 Thread Sylvie Perrin
André, Thank you for your help but I can't follow your main recommendation, ie. avoid using non US-ASCII names. Actually, file names are part of information my servlet have to process and they cannot be changed. I am not the "owner" of these names and I must deal with them. Sylvie. André War

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-21 Thread Sylvie Perrin
/web.xml) without positive results. Thanks, Sylvie. Christopher Schultz a écrit : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sylvie, On 9/18/2009 8:35 AM, Sylvie Perrin wrote: So, I change this property in the servlet test, by adding JAVA_OPTS=-Dsun.jnu.encoding=UTF-8

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-18 Thread Sylvie Perrin
h: SHA1 Sylvie, On 9/17/2009 9:12 AM, Sylvie Perrin wrote: I have a shared directory on a windows system named SHAREDDIR and containing one file named "fichié.txt" I mount this shared directory on my Linux system with the following command: mount -t cifs -o iocharset=utf8 //Ip

Create FileInputStream in servlet from remote file with accentuated character name

2009-09-17 Thread Sylvie Perrin
I have a problem with Tomcat 6.0 on Linux and I haven't been able to determine the cause or solution. I have a shared directory on a windows system named SHAREDDIR and containing one file named "fichié.txt" I mount this shared directory on my Linux system with the following command: > mount -t