cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: Encoding
Date Fri, 07 Apr 2000 13:32:05 GMT
Christoph Oehler wrote:
> 
> Hi
> 
> I'm using Cocoon 1.7 and have set the parser to SunXMLParser.
> 
> The XML-declaration of my xml-file lookes like this:
> 
> <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
> 
> >From Cocoon I get the followin StackTrace:
> 
> com.sun.xml.parser/P-061 ISO-8859-1 Cp1252 [WARNING] [File: "c:/da/apps/apache/htdocs/test/"
Line: 1 Column: -1]
> at org.apache.cocoon.parser.AbstractParser.warning(AbstractParser.java:117)
> at com.sun.xml.parser.Parser.warning(Parser.java:2768)
> at com.sun.xml.parser.Parser.readEncoding(Parser.java:2564)
> at com.sun.xml.parser.Parser.maybeXmlDecl(Parser.java:984)
> at com.sun.xml.parser.Parser.parseInternal(Parser.java:477)
> at com.sun.xml.parser.Parser.parse(Parser.java:283)
> at org.apache.cocoon.parser.SunXMLParser.parse(SunXMLParser.java:36)
> at org.apache.cocoon.parser.AbstractParser.parse(AbstractParser.java:83)
> at org.apache.cocoon.producer.AbstractProducer.getDocument(AbstractProducer.java:96)
> at org.apache.cocoon.Engine.handle(Engine.java, Compiled Code)
> at org.apache.cocoon.Cocoon.service(Cocoon.java:145)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
> at com.livesoftware.jrun.JRun.runServlet(JRun.java, Compiled Code)
> at com.livesoftware.jrun.JRunGeneric.handleConnection(JRunGeneric.java:116)
> at com.livesoftware.jrun.JRunGeneric.handleProxyConnection(JRunGeneric.java:78)
> at com.livesoftware.jrun.service.proxy.JRunProxyServiceHandler.handleRequest(JRunProxyServiceHandler.java:102)
> at com.livesoftware.jrun.service.ThreadConfigHandler.run(ThreadConfigHandler.java, Compiled
Code)
> 
> When I ommit the encoding-part it works ... although it has the german Umlaute (like
&uuml;).
> 
> I tried it out myself by writing a small dummy-programm using xml.jar from Sun. Well
there it is just the otherway round .... when I ommit the encoding I get:
> 
> org.xml.sax.SAXParseException: com.sun.xml.parser/P-076 Malformed UTF-8 char -- is an
XML encoding declaration missing?
> 
> Somebody any hints?
> 
> thank's christoph

many encoding problems have been fixed in current CVS version of Cocoon
named 1.7.3-dev but not very tested yet.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------


Mime
View raw message