Re: More on entitie s and Â

Chris Croome <chris-u/[email protected]>
Newsgroups gmane.comp.lang.perl.modules.petal
Message-ID <[email protected]>
Hi

On Tue 04-May-2004 at 11:50:14AM -0400, William McKee wrote:
> 
> > > The next thing that confuses me is that I have Perl 5.8.3 installed on
> > > both systems. Only one is showing the extra character.
> > 
> > This is, of course, mistery. ;-)
> 
> Figures... :-/

Perhaps you environment is different?

  $ printenv | grep LANG

?

> My understanding of utf-8 was that it was compatible with latin1.

No, UTF-8 is compatible with US ASCII not Latin 1.

> One more point which may be at the root of my problems. I'm trying
> to get Apache to add the Content-Type header using the following
> declaration in my httpd.conf per the Apache docs:
> 
>     AddDefaultCharset utf-8
> 
> No matter if I have this in my main server configuration or the
> virtual host configuration, if I do a `HEAD http::servername`, I
> get back a Content-Type of iso-8859-1. If I view the page in
> Firefox and manually tell Firefox to display it as UTF-8, all is
> well. Any ideas why Apache isn't playing nice?

Hmm, that's odd. 

I usually do it like this:

  AddType 'text/html; charset=UTF-8' .html

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.