cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iris <>
Subject encoding match problem
Date Tue, 29 Oct 2002 16:05:42 GMT

I have a little problem with encoding:

I have data encoded in ISO-8859-1 that I try to serialize in XLS.
On linux (debian) I have no problem but on NT I have an error like:
org.apache.cocoon.ProcessingException: Failed to execute pipeline: 
org.xml.sax.SaxParseException: The declared encoding "ISO-8859-1" 
doesn't match with the actual encoding "UTF-8" This might not be an error.
(it's not the exact error because it's done in french in my browser)

So I tried with the sitemap:
<?xml version="1.0" encoding="iso-8859-1"?>
<map:sitemap xmlns:map="">

  <map:generators default="file"/>
  <map:readers default="resource"/>
  <map:serializers default="html">
   <map:serializer name="xls"
           mime-type="application/" locale="us"/>
  <map:selectors default="browser"/>
  <map:matchers default="wildcard">
   <map:matcher name="wildcard"
  <map:transformers default="xslt"/>
   <map:action name="request"

   <map:match pattern="listing.xls*">
    <map:act type="request">
     <map:parameter name="parameters" value="true"/>
src="http://localhost:8080/listingwebui/xslt/listing2xls.xsl" type="xslt">
     <map:serialize type="xls"/>

And all my xml files have encoding="iso-8859-1"
But this does the same result.

Any idea ?

Does Cocoon search for a default encoding on the host ?

What is exactly the "actual encoding" ?


Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message