forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <>
Subject Re: forrest output charset mismatch with httpd
Date Wed, 01 Feb 2006 00:49:44 GMT
El mar, 31-01-2006 a las 09:37 -0500, Yonik Seeley escribió:
> Thanks for the email links Thorsten.
> On 1/31/06, Thorsten Scherler <> wrote:
> > It sounds that you have actually tried the .htaccess entry:
> > AddDefaultCharset UTF-8
> Yes, it had no effect.  It's not my server though, so I can't just go
> and reboot it (or enable .htaccess files if they aren't enabled).

Yeah, I just tried with the lenya site and you are right, the .htaccess
has no effect.

> The thing is *every* other forrest use at apache (except
> that I have run across has this problem.  It seems
> like this should be fixed for everyone, not on a case-by-case basis.

Yeah, we should post your list to infra. I would strongly recommend to
set it in .htconf then because IMO UTF-8 should be used by all apache

> Having forrest generate latin-1 encoded html files by default would be nice.
> Is there any way to instruct forrest to do this?

Yeah, I do not recommend this because ISO-8859-1 is excluding to many
extra characters and I am not sure whether this solves your problem,
anyway here it goes. It is directly taken from forrest main sitemap.xmap
and one can shorten this. ;-)

One way is to add the following in your sitemap.xmap (assuming you use
"old fashion" skins and have basic cocoon knowledge):

into <map:serializers>
<map:serializer name="html" mime-type="text/html"
 <doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public>

then into <map:resources>
<map:resource name="skinit">
 <map:transform src="{lm:{type}}">
  <map:parameter name="notoc" value="{notoc}"/>
  <!-- For backwards-compat with 0.2 - 0.4 skins -->
  <map:parameter name="isfaq" value="{notoc}"/>
  <map:parameter name="nopdf" value="{nopdf}"/>
  <map:parameter name="path" value="{path}"/>
  <map:parameter name="config-file" value="{project:skinconf}"/>

then in <map:pipelines>
<!--pipeline that "marries" the docs in the root dir with the skin to
produce html-->
      <map:match pattern="*.html">
        <map:aggregate element="site">
          <map:part src="cocoon:/skinconf.xml"/>
          <map:part src="cocoon:/build-info"/>
          <map:part src="cocoon:/tab-{0}"/>
          <map:part src="cocoon:/menu-{0}"/>
          <map:part src="cocoon:/body-{0}"/>
        <map:call resource="skinit">
          <map:parameter name="type" value=""/>
          <map:parameter name="path" value="{0}"/>
<!--pipeline that "marries" the docs in all other dirs then root with
the skin to produce html-->
      <map:match pattern="**/*.html">
        <map:aggregate element="site">
          <map:part src="cocoon:/skinconf.xml"/>
          <map:part src="cocoon:/build-info"/>
          <map:part src="cocoon:/{1}/tab-{2}.html"/>
          <map:part src="cocoon:/{1}/menu-{2}.html"/>
          <map:part src="cocoon:/{1}/body-{2}.html"/>
        <map:call resource="skinit">
          <map:parameter name="type" value=""/>
          <map:parameter name="path" value="{0}"/>

> -Yonik


"Together we stand, divided we fall!" 
Hey you (Pink Floyd)

View raw message