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-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org

Reply via email to