Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 96552 invoked from network); 29 Jan 2004 19:54:24 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 29 Jan 2004 19:54:24 -0000 Received: (qmail 38771 invoked by uid 500); 29 Jan 2004 19:53:24 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 38707 invoked by uid 500); 29 Jan 2004 19:53:24 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 38641 invoked from network); 29 Jan 2004 19:53:23 -0000 Received: from unknown (HELO mx4.bentley.com) (64.90.235.34) by daedalus.apache.org with SMTP; 29 Jan 2004 19:53:23 -0000 Received: from exton3.bentley.com (exton3 [64.90.226.70]) by mx4.bentley.com (8.12.10/8.12.10) with ESMTP id i0TJrNMs005558 for ; Thu, 29 Jan 2004 14:53:24 -0500 Received: by exton3.bentley.com with Internet Mail Service (5.5.2657.72) id ; Thu, 29 Jan 2004 14:43:19 -0500 Message-ID: <8690E31BE4D6FF4F95A3179139A8E2364CBA56@exton10.bentley.com> From: Robert Priest To: "'Jakarta Commons Developers List'" Subject: [fileupload] FileItem.getFieldName() does not follow specified en coding? Date: Thu, 29 Jan 2004 14:53:18 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, I am using DiskFileUpload and the DefaultFileItem classes. I am setting the Header Encoding (in my jsp page) as so: // Create a new file upload handler DiskFileUpload upload = new DiskFileUpload(); //set the encoding to UTF-8 upload.setHeaderEncoding("UTF-8"); I am attempting to upload a file with Chinese characters in the name. But when I do a FileItem.getFieldName(), I am coming up with ???? for the file name. However, FileItem.getName() seems to be correctly encoded? Can anyone tell me what I could be missing when I perform a "getFieldName()". I know that you can get the contents of a item by specifying FileItem.getString("UTF-8"), and that will decode correctly. However, there is no such call for getFieldName(). Thanks in advance. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org