Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 93984 invoked from network); 8 Feb 2005 16:12:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Feb 2005 16:12:33 -0000 Received: (qmail 28005 invoked by uid 500); 8 Feb 2005 16:12:30 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 27928 invoked by uid 500); 8 Feb 2005 16:12:30 -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 27915 invoked by uid 99); 8 Feb 2005 16:12:30 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jak-commons-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 08 Feb 2005 08:12:28 -0800 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1CyXx0-000408-3n for commons-dev@jakarta.apache.org; Tue, 08 Feb 2005 17:10:54 +0100 Received: from p213.54.62.85.tisdip.tiscali.de ([213.54.62.85]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Feb 2005 17:10:54 +0100 Received: from t.schoellhorn by p213.54.62.85.tisdip.tiscali.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Feb 2005 17:10:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: commons-dev@jakarta.apache.org From: =?ISO-8859-1?Q?Tino_Sch=F6llhorn?= Subject: [Email] setting charset Date: Tue, 08 Feb 2005 16:56:42 +0100 Lines: 27 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p213.54.62.85.tisdip.tiscali.de User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en Sender: news X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-MailScanner-From: jak-commons-dev@m.gmane.org X-MailScanner-To: commons-dev@jakarta.apache.org X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I think I just stumbled across a bug at the (unreleased) Email component. I want to send an Email with: Email e = new SimpleEmail(); // set some Recipients and Content here ... // I want to make sure that the following encoding is used. e.setCharset(Email.ISO_8859_1); e.send(); Now the thing is, that the set charset is ignored. Actually, when using this method the charset is *never* changed because of the implementation of Email.send() which just ignores the charset. Instead one has to use the method Email.setContent(Object, String) to make sure the encoding is used (though there is a code-block there which should just do that). I could send a patch for that, but currently I do not know the status and the further plans of the Email component. So please let me know if I can help out here. With regards Tino --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org