cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Haller <reinhard.hal...@interactive-net.de>
Subject Re: 2.1.10: charset & nekohtml
Date Thu, 22 Nov 2007 10:51:26 GMT
Hi Bertrand,

Bertrand Delacretaz schrieb:
> On Nov 21, 2007 10:39 AM, Reinhard Haller
> <reinhard.haller@interactive-net.de> wrote:
>
>   
>> ...The html-document doesn't contain any charset spec and neko has a
>> charset problem (the charset of the http response is utf-8)....
>>     
>
> I've had to use the input-encoding parameter for neko to work
> correctly, for example:
>
>         <map:transform type="nekohtml">
>           <map:parameter name="input-encoding" value="iso-8859-1" />
>         </map:transform>
>
>   
I'm not convinced, the parameter changes anything as you can see in the 
following sitemap (I tried also iso-8859-1 and utf-8).

            <map:match pattern="**/*.neko">
                <map:generate type="nekohtml" 
src="{request-param:serv}"  label="debug1x" >
            <parameter name="input-encoding" value="1"/>
                </map:generate>
                 <map:serialize type="xml"/>
            </map:match>

Greetings
Reinhard


Mime
View raw message