Re: entity euro hurts

Chris Croome <chris-u/[email protected]>
Newsgroups gmane.comp.lang.perl.modules.petal
Message-ID <[email protected]>
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-u/[email protected]>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.