cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Flynn <pfl...@ucc.ie>
Subject Re: Encoding
Date Fri, 17 Dec 2010 15:16:52 GMT
On 17/12/10 15:06, Peter Flynn wrote:
[...]
> The result is that the output at
> http://publish.ucc.ie/researchprofiles/A005
> has Unicode replacement characters instead of accents.

Curiouser and curiouser, that page serves as UTF-8 but lower down it says:

<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
         "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-ie">
   <head xmlns="" xmlns:h="http://www.w3.org/1999/xhtml">
      <meta http-equiv="Content-Type"
            content="text/html; charset=ISO-8859-1">
      <!--School: A005; Researcher-in-School: ; Real School: -->
      <meta content="no-cache" http-equiv="Pragma">

That is generated by

  <xsl:template match="h:head">
    <head>
    <xsl:comment>
      <xsl:text>School: </xsl:text>
      <xsl:value-of select="$school"/>
      <xsl:text>; Researcher-in-School: </xsl:text>
      <xsl:value-of select="$researcher-in-school"/>
      <xsl:text>; Real School: </xsl:text>
      <xsl:value-of select="$real-school"/>
    </xsl:comment>
    <meta http-equiv="Pragma" content="no-cache"/>

so WTF is that
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
coming from? Is Cocoon sticking it in by itself? The page template which
I take for the framework is
http://www.ucc.ie/en/old-design-base/
and that says quite clearly
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

Something, somewhere is sticking a bogus encoding in the works.

///Peter

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


Mime
View raw message