cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <>
Subject Re: Questionmarks instead of umlauts in JPEG serialized SVGs ?
Date Fri, 07 Nov 2003 00:13:16 GMT
If you do this direct mapping from request param to stylesheet param, 
the request character encoding must be the same as the stylesheet 
encoding if I remember correctly. We had the same problem 1,5 years ago 
when generating images dynamically. At the end we circumvent it by using 
i18n, where only the key is given in the URL of the image. This key 
never contains any umlaut, because it is simply the english word.

What can you do:

1) Change the encoding of the stylesheet to the request encoding, so 
that the sitemap param is passed in the correct encoding.

2) Use only characters from the US ASCII char set (first 2^7 characters) 
as key and use i18n transformer for translating them. This allows also 
later internationalization (this is why it's called i18n transformer :).


On 06.11.2003 19:32, Christofer Dutz wrote:

> Encoding is ok ... and I tracked the Problem back to some Sitemap-Problems
> Here is the Part of my sitemap:
>   <map:match pattern="images/ueberschrift/*.jpg">
>    <map:generate src="stylesheets/dummy.xml"/>
>    <map:transform src="stylesheets/Ueberschrift.xsl">
>        <map:parameter name="label" value="{1}"/>
>    </map:transform>
>    <map:serialize/>
> </map:match>
> It seems that the parameter "label" doesn't arive at the stylesheet with 
> the correct encoding.
> Can I set cocoons internal format to iso-8859-1 ?
> Chris
> Jorg Heymans wrote:
>> is the encoding on your xml document correctly set? ie ISO8859-1 or 
>> UTF-8?
>> Add debugging views to your pipeline to see at which stage exactly it 
>> loses your umlauts
>> Christofer Dutz wrote:
>>> Hi,
>>> I am having some strange problems with the svg-to-jpeg serialisation in
>>> combination with german umlauts. I am using cocoon to dynamically
>>> generate images according to the url of the immage. If I embed an image
>>> "/images/Title.jpg" a jpeg containing the text "Title" is created. My
>>> problem now is, that if I link "/images/%FCberschrift.jpeg", which is
>>> URL-Encoded "├╝berschrift", I get the correct image, but at the position
>>> where the umlaut is, there is a black diamond with a white question mark
>>> inside. I have tried several things, but I couldn't get this to work.
>>> Hans anyone here got an idea?
>>> Thanx in advance,
>>>    Christofer Dutz

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

View raw message