cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "roy huang" <>
Subject SQLTransformer enhancement
Date Tue, 16 Mar 2004 10:13:32 GMT
    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
View raw message