Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 63637 invoked from network); 8 Oct 2007 18:35:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Oct 2007 18:35:21 -0000 Received: (qmail 14614 invoked by uid 500); 8 Oct 2007 18:34:58 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 14528 invoked by uid 500); 8 Oct 2007 18:34:58 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 14519 invoked by uid 500); 8 Oct 2007 18:34:58 -0000 Delivered-To: apmail-jakarta-commons-user@jakarta.apache.org Received: (qmail 14516 invoked by uid 99); 8 Oct 2007 18:34:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2007 11:34:58 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.6.122.12] (HELO mail1.ewetel.de) (212.6.122.12) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2007 18:34:59 +0000 Received: from gateway.privat (host-091-097-004-140.ewe-ip-backbone.de [91.97.4.140]) by mail1.ewetel.de (8.12.1/8.12.9) with ESMTP id l98IYZmX012864 for ; Mon, 8 Oct 2007 20:34:35 +0200 (CEST) Received: from ubuntu.privat ([192.168.1.3]) by gateway.privat with esmtp (Exim 4.50) id 1IexQw-0004to-FD for commons-user@jakarta.apache.org; Mon, 08 Oct 2007 20:34:26 +0200 Message-ID: <470A7832.8060500@weber-oldenburg.de> Date: Mon, 08 Oct 2007 20:34:26 +0200 From: Volker Weber User-Agent: Thunderbird 1.5.0.13 (X11/20070824) MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: [fileupload] encoding of filename References: <46A4857D.5090200@weber-oldenburg.de> In-Reply-To: <46A4857D.5090200@weber-oldenburg.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Weber-Oldenburg-MailScanner: Found to be clean X-CheckCompat: OK X-Virus-Checked: Checked by ClamAV on apache.org Hi, reposting again after nearly 3 month 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