cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: SQLTransformer enhancement
Date Tue, 16 Mar 2004 10:38:08 GMT
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
> 


Mime
View raw message