[Petal] entity euro hurts

Chris Croome chris at webarchitects.co.uk
Mon Apr 26 17:55:49 BST 2004


Hi

On Mon 26-Apr-2004 at 12:04:19PM -0400, William McKee wrote:
> On Mon, Apr 26, 2004 at 04:31:33PM +0200, Michele Beltrame wrote:
> > That's what I feared. ;-) I hoped there was a way to force Perl
> > using UTF8 always, without having manaully encode every
> > processed template. It seems there isn't. :(

Looking at this from a templating poin of view (rather than a
coders...) what I'd like to be able to do is use a XML PI at the
start of each template file and use that for the charset of the
file, eg:

  <?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">
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
  ...

  http://www.w3.org/

But, due to bugs in older browsers it's better to not serve a XML PI
and to use XHTML 1.0 Transitional (unless you do content neg - this
is what the WC3 does, http://www.w3.org/Overview.html |
http://www.w3.org/Overview.xhtml), so the PI should be removed from
the output.

Chris

-- 
Chris Croome                               <chris at webarchitects.co.uk>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   


More information about the Petal mailing list