You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ramzi khlil <ra...@gmail.com> on 2009/09/21 17:24:45 UTC

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

Sylvie,

I suggest you to create a mapping until you find a solution.

In your application, put the origianl file name as friendly name and save
the file without accent.
So, when user list the files, you show him the friendly name, but when you
load a file use the mapping entry to get the file name.

Ramzi




On Mon, Sep 21, 2009 at 10:45 AM, Sylvie Perrin
<sy...@continew.fr>wrote:

> 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é Warnier a écrit :
>
> That is why I was recommending to stick to US-ASCII names.  It was not a
>> joke.
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>