Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 61670 invoked from network); 8 Sep 2006 13:30:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Sep 2006 13:30:01 -0000 Received: (qmail 57424 invoked by uid 500); 8 Sep 2006 13:29:45 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 57316 invoked by uid 500); 8 Sep 2006 13:29:44 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 57265 invoked by uid 99); 8 Sep 2006 13:29:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Sep 2006 06:29:44 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [203.200.218.100] (HELO mail.infotechsw.com) (203.200.218.100) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Sep 2006 06:29:43 -0700 Received: from mail.infotechsw.com (mail.infotechsw.com [127.0.0.1]) by mail.infotechsw.com (8.12.10/8.12.10) with ESMTP id k88DRK0l031977 for ; Fri, 8 Sep 2006 18:57:20 +0530 Received: from raghuveer ([10.1.3.2])by mail.infotechsw.com (8.12.10/8.12.10) with SMTP id k88DRKZE031968for ; Fri, 8 Sep 2006 18:57:20 +0530 Reply-To: From: "Raghuveer" To: Subject: response.setContentType("text/html; charset=utf-8") Date: Fri, 8 Sep 2006 18:36:48 +0530 Message-ID: <003201c6d347$a5873c40$0ec213ac@pwit.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <1157699391.5303.ezmlm@struts.apache.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Importance: Normal X-imss-version: 2.042 X-imss-result: Passed X-imss-scanInfo: M:P L:E SM:0 X-imss-tmaseResult: TT:0 TS:0.0000 TC:00 TRN:0 TV:3.6.1039(14676.003) X-imss-scores: Clean:92.54639 C:2 M:4 S:5 R:5 X-imss-settings: Baseline:1 C:1 M:1 S:1 R:1 (0.0000 0.0000) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N >From the source examples jakarta-struts-1.1-src\jakarta-struts-1.1-src\src\upload\org\apache\struts\w ebapp\upload What does the use of response.setContentType("text/html; charset=utf-8"); ------------------------------------------- /this line is here for when the input page is upload-utf8.jsp, //it sets the correct character encoding for the response String encoding = request.getCharacterEncoding(); if ((encoding != null) && (encoding.equalsIgnoreCase("utf-8"))) { response.setContentType("text/html; charset=utf-8"); } --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org