commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Volker Weber <>
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

  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?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message