cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject Re: TextSerializer and UTF-8
Date Fri, 11 Mar 2005 09:29:06 GMT
Geert Josten wrote:
> Hi,
> 
> I'm not certain whether it really works, but TextSerializer and 
> XmlSerializer are very much similar. Ever tried to define a new 
> TextSerializer with the encoding explicitly set to utf-8?
> 
>     <map:serializer logger="sitemap.serializer.utf8-text" 
> mime-type="text/plain" name="utf8-text"
>       src="org.apache.cocoon.serialization.TextSerializer">
>       <encoding>UTF-8</encoding>
>     </map:serializer>


Yes, I'm using this configuration, but unfortunately it doesn't
change anything.

Thanks for your help!

-- Andreas

> 
> Cheers,
> Geert
> 
> Andreas Hartmann wrote:
> 
>> Hi Cocoon community,
>>
>> when I use the text serializer with UTF-8 encoding, Internet Explorer
>> does not recognize the encoding and screws up the umlauts.
>>
>> With the XML serializers from the serializers block, the problem
>> does not appear. Is there any workaround for the text serializer?
>>
>> Setting the Content-Type header using the HttpHeaderAction does
>> not work, I guess it is overridden by the serializer:
>>
>>    <map:act type="set-header">
>>      <map:parameter name="Content-Type" value="text/plain; 
>> charset=utf-8"/>
>>    </map:act>
>>
>> Thanks in advance!
>>
>> -- Andreas
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message