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 [fileupload] encoding of filename
Date Mon, 23 Jul 2007 10:39:57 GMT
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


Mime
View raw message