You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by li...@bi.no on 2000/05/24 09:49:22 UTC

org.xml.sax.SAXParseException: The encoding "UTF-16" is not supported

I have some Chinese words which are already converted to UTF-16, f.eks.
最新 . They can be read in IE if I insert them into a normal html
file, they can even be read in Nokia 7110 or other wap emulators if I insert
them into a normal wml file.
But when I put them into the hello-page.xml, and specified the encoding in
hello-page.xml and hello-page-html.xsl like this: <?xml version="1.0"
encoding="UTF-16" ?>

The IE browser showed this error message:
--------------------------------------------------------------
Error found handling the request.
org.xml.sax.SAXParseException: The encoding "UTF-16" is not supported.
     at
org.apache.cocoon.parser.AbstractParser.fatalError(AbstractParser.java:105)
     at org.apache.xerces.framework.XMLParser......
---------------------------------------------------------------------------------------------------------------
If I don't specify any encoding, which means using the default ISO-8859-1, IE
returns two question marks ?? for the two codes.

I've added " formatter.text/html.encoding =UTF-16 " into cocoon.properties, the
system is Cocoon1.7.3 with win98+tomcat3.1

Does Cocoon support UTF-16? Or I'm missing some steps?