Hello,

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="http://apache.org/cocoon/sitemap/1.0";>

<map:components>
<map:generators default="file"/>
<map:readers default="resource"/>
<map:serializers default="html">
<map:serializer name="xls"
src="org.apache.cocoon.serialization.HSSFSerializer"
mime-type="application/vnd.ms-excel" locale="us"/>
</map:serializers>
<map:selectors default="browser"/>
<map:matchers default="wildcard">
<map:matcher name="wildcard"
src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>
</map:matchers>
<map:transformers default="xslt"/>
<map:actions>
<map:action name="request"
src="org.apache.cocoon.acting.RequestParamAction"/>
</map:actions>
</map:components>


<map:pipelines>
<map:pipeline>
<map:match pattern="listing.xls*">
<map:act type="request">
<map:parameter name="parameters" value="true"/>
<map:generate src="http://localhost:8080/listingwebui/jsp-xml/listing.jsp?begindate={begindate}&amp;enddate={enddate}&amp;administratorid={administratorid}";>
<encoding>ISO-8859-1</encoding>
</map:generate>
<map:transform src="http://localhost:8080/listingwebui/xslt/listing2xls.xsl"; type="xslt">
<encoding>ISO-8859-1</encoding>
</map:transform>
<map:serialize type="xls"/>
<encoding>ISO-8859-1</encoding>
</map:transform>
</map:act>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>

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" ?

Iris


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to