[Petal] More on entities and Â
William McKee
william at knowmad.com
Tue May 4 17:33:36 BST 2004
On Tue, May 04, 2004 at 04:59:26PM +0100, Chris Croome wrote:
> Perhaps you environment is different?
>
> $ printenv | grep LANG
That could be. That command returns nothing for my 'www' accounts on
both systems. However, for the user accounts, it returns EN_us on my
local test server and nothing for the production server.
A quick look in my .bashrc and /etc/bash.bashrc and /etc/profile doesn't
turn up where the LANG is being set. Any ideas where this setting would
be?
> > My understanding of utf-8 was that it was compatible with latin1.
>
> No, UTF-8 is compatible with US ASCII not Latin 1.
Oh! Well that's certainly part of my confusion.
> Hmm, that's odd.
>
> I usually do it like this:
>
> AddType 'text/html; charset=UTF-8' .html
That works for my html files but my cgi scripts do not have extensions.
I tried using this command:
AddType 'text/html; charset=UTF-8' *
The content type of the header is still reporting iso-8859-1 though.
This makes me think that something within my scripts is forcing this
header. However, I don't see anything that would cause this behavior.
I guess I'm stuck with overloading the process function and forcing
iso-8859-1 mode since I can't seem to convince my Apache server to
either set the Content-Type header to my preference. Perhaps one day
I'll figure out which command in my settings file was causing the
different behavior.
Thanks,
William
--
Knowmad Services Inc.
http://www.knowmad.com
More information about the Petal
mailing list