commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Volker Weber <commons-fu-l...@weber-oldenburg.de>
Subject Re: [fileupload] encoding of filename
Date Mon, 30 Jul 2007 07:39:34 GMT
Hi,

reposting after a week without response.

No one out there with knowledge on fileupload and encoding?



Regards,
  Volker


Volker Weber wrote:
> Hi all,
> 
> i have a problem with the encoding of the filename.
> 
> to get the correct characters (e.g. german umlauts) i need to recode the
> filename:
> 
>   String encoding = request.getCharacterEncoding();
>   String fileName = new String(item.getName().getBytes(), encoding);
> 
> note: in my app the encoding is always utf-8.
> 
> the file content is correct encoded without any recoding.
> 
> This workarround works in version 1.0, not in 1.1 but in 1.2 again.
> In version 1.1 i can't find a way to get the correct encoding.
> 
> is there a bug in fileupload or do i miss something?
> 
> 
> 
> Regards,
>   Volker
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message