Insist (via both HTTP header and XML declaration) on UTF-8 rather than
authorMike Taylor <mike@indexdata.com>
Fri, 22 Sep 2006 09:05:39 +0000 (09:05 +0000)
committerMike Taylor <mike@indexdata.com>
Fri, 22 Sep 2006 09:05:39 +0000 (09:05 +0000)
ISO 8859-1.  This enables the correct display of non-ASCII characters
drawn from ZeeRex records.

web/htdocs/chrome/head.mc

index 49f5800..5ab3d36 100644 (file)
@@ -1,9 +1,9 @@
-%# $Id: head.mc,v 1.1 2006-09-14 15:17:48 mike Exp $
+%# $Id: head.mc,v 1.2 2006-09-22 09:05:39 mike Exp $
 <%args>
 $title
 </%args>
-% my $agent = $m->notes("agent");
-<?xml version="1.0" encoding="ISO-8859-1"?>
+% $r->content_type("text/html; charset=utf-8");
+<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html 
      PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">