tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ramzi khlil <ramzi.atv...@gmail.com>
Subject Re: Create FileInputStream in servlet from remote file with accentuated character name
Date Mon, 21 Sep 2009 15:24:45 GMT
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
<sylvie.perrin@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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message