Hello Marc,

Marc Portier schrieb:
never change your container-encoding unless you have a servlet container
of which you can specify the used encoding applied in decoding of url's
and request parameters

(if you don't understand what I just said: that translates to simply
"never")

I think I got it :) It also said that in the comments of the web.xml - file, as to never change it unless the servlet-container is buggy (which I suppose Tomcat 5.0.28 is not), but I thought I might give it a shot. But since that didn't help I changed it back to the original setting

like where? I just did a rough scan but couldn't find any 'multiple byte
for single character' occurances

OK, so I belive I got something wrong. These characters that I thought to be Unicode-Characters are rather XML-Interpretations? There are often Chars like ” in the feeds. Since these aren't translated properly and they are not part of Latin-1 I thought they must be UTF-8, which they obviously aren't, or are they?


$ wget -q -O - 
http://www.industrial-technology-and-witchcraft.de/index.php/ITW/itw-rss20/ | grep 
'&#'


are all punctuation chars that seem to be correctly applied

see above :) you're more than probably right

I have never used coplets, nor even looked at them (deeply sorry)
but I would certainly check the way these feeds are interpreted in the
first place (rather then how they are serialized)

if that is bad, then nothing furtheron in the pipe will be able to
produce decent characterstreams regardless of encoding scheme's you're
trying out on the serializer

This is the relevant part of my sitemap:
<map:match pattern="live.rss">
<map:generate type="file" src="{request-param:feed}" label="content" />
            <map:transform type="xslt" src="styles/rss2html.xsl">
<map:parameter name="fullscreen" value="{coplet:aspectDatas/fullScreen}"/>
            </map:transform>
            <map:serialize type="xml"/>
        </map:match>

So my next thought was that it is the XSL that is messing up the RSS.
So I edited the XSL and added this line after the <xsl:stylesheet>

<xsl:output method="html" encoding="ISO-8859-1"/>

but it didn't help either. Maybe someone would like to take a look at the xsl I attached to see whether there is something wrong with it?


on the side: you don't need to set your serializer specific encoding if
you have set the form-encoding init param in the web.xml to utf-8 (which
I would suggest at all times)

done.

and thanks a lot for your effort, everybody. I really appreciate that :)

best regards,

christian
<?xml version="1.0"?>
<!--
  Copyright 1999-2004 The Apache Software Foundation

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="html" encoding="ISO-8859-1"/>
<!-- $Id: rss2html.xsl 30932 2004-07-29 17:35:38Z vgritsenko $ 

-->
<xsl:param name="fullscreen"/>

<xsl:template match="rss">
  <xsl:apply-templates select="channel"/>
</xsl:template>


<xsl:template match="channel">

  <xsl:if test="title">
    <b><a href="{link}"><xsl:value-of select="title"/></a></b>
    <br/>
  </xsl:if>
  <xsl:if test="description">
    <font size="-3">&#160;(<xsl:value-of select="description"/>)</font>
  </xsl:if>
  <table>
    <xsl:apply-templates select="item"/>
  </table>
</xsl:template>

<xsl:template match="item">
  <!-- Display the first 5 entries -->
  <xsl:if test="$fullscreen='true' or position() &lt; 6">
    <tr>
      <td>
        <a target="_blank" href="{link}">
          <font size="-1"> 
            <b><xsl:value-of select="title"/></b>
          </font>
        </a>
        <xsl:apply-templates select="description"/>
      </td>
    </tr>
    <tr><td height="5">&#160;</td></tr>
  </xsl:if>
</xsl:template>

<xsl:template match="description">
  <font size="-2">
    <br/>
    &#160;&#160;<xsl:apply-templates/>
  </font>
</xsl:template>

<xsl:template match="node()|@*" priority="-1">
  <xsl:copy>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </xsl:copy>
</xsl:template>

</xsl:stylesheet>

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