cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierpaolo Fumagalli <p...@apache.org>
Subject Re: Encoding
Date Fri, 07 Apr 2000 19:04:17 GMT
It's a Project-X related bug for sure... I'm forwarding this message
to Rajiv Mordani, one of the engineers at Sun working on it (please 
Rajiv, don't tell me "go into the crimson code and figure it out
yourself" :)

	Pier

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


-- 
----------------------------------------------------------------------
pier: stable structure erected over water to allow docking of seacraft
<mailto:pier@betaversion.org>      <http://www.betaversion.org/~pier/>
----------------------------------------------------------------------



Mime
View raw message