You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Marco Dubbeld <ma...@davtec.nl> on 2004/03/01 15:18:07 UTC

Encoding with URLSource and XMLizer

Just found this issue when using cocoon's CIncludeTransformer to
cinclude chinese ('UTF-8') xml.

Currently URLSource assumes the content-encoding to be systems default
encoding. It would be nice to support UTF-8 and other encodings, by
enhancing URLSource with a setEncoding and getEncoding method just as
org.xml.sax.InputSource has. For same reason it would also be nice to
have an extra method getReader.

The toSAX method of XMLizer expects an InputStream. It would be nice to
make it also capable to handle different encodings, by giving it an
extra method toSax with a Reader parameter.Or maybe giving it an
content-encoding parameter with the Configuration.

What do you think of these ideas? I am willing to make patch if this is
the way to go.

Greetz,
Marco



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org