Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 31817 invoked from network); 16 Mar 2004 10:36:19 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 16 Mar 2004 10:36:19 -0000 Received: (qmail 42470 invoked by uid 500); 16 Mar 2004 10:35:49 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 42398 invoked by uid 500); 16 Mar 2004 10:35:49 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 42382 invoked from network); 16 Mar 2004 10:35:49 -0000 Received: from unknown (HELO mail.s-und-n.de) (212.8.217.2) by daedalus.apache.org with SMTP; 16 Mar 2004 10:35:49 -0000 Received: from notes.sundn.de (ntsrv5.sundn.de [10.10.2.10]) by mail.s-und-n.de (postfix) with ESMTP id 6F36E19F595 for ; Tue, 16 Mar 2004 11:36:02 +0100 (CET) Received: from hw0386 ([10.10.2.54]) by notes.sundn.de (Lotus Domino Release 6.5) with ESMTP id 2004031611301663-112085 ; Tue, 16 Mar 2004 11:30:16 +0100 From: "Carsten Ziegeler" To: Subject: RE: SQLTransformer enhancement Date: Tue, 16 Mar 2004 11:38:08 +0100 Organization: S&N AG MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Thread-Index: AcQLPuTvf/b+jNOKSTOG7H3VJHSfugAA8nlA In-Reply-To: X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 6.5|September 26, 2003) at 16.03.2004 11:30:16, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 6.5|September 26, 2003) at 16.03.2004 11:30:17, Serialize complete at 16.03.2004 11:30:17 Message-ID: Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" 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 Good idea. I just committed the changes. You can now set the encoding in the component configuration and as a sitemap parameter. Thanks Carsten > -----Original Message----- > From: roy huang [mailto:lingererhuang@hotmail.com] > Sent: Tuesday, March 16, 2004 11:14 AM > To: dev@cocoon.apache.org > Subject: SQLTransformer enhancement > > In SQLTransformer.java > public SQLTransformer() { > // FIXME (CZ) We have to get the correct encoding from > // somewhere else (XML Serializer?) > this.format = new Properties(); > this.format.put(OutputKeys.METHOD, "text"); > this.format.put(OutputKeys.ENCODING, "ISO-8859-1"); > this.format.put(OutputKeys.OMIT_XML_DECLARATION, "yes"); > this.namespaceURI = NAMESPACE; > } > Just like FIXME said,ISO-8859-1 should lead problems.If I use > any utf-8 character in sql,the SQL Trasformer will produce an error. > Suggestion : > move this.format to setup,and get encoding from a parameter. > > Roy Huang >