Re: More on entitie s and Â

Michele Beltrame <mb-pzZ8rf8/[email protected]>
Newsgroups gmane.comp.lang.perl.modules.petal
Message-ID <[email protected]>
Hii!

> 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.

You probably need to overload the process() function anyhow to ensure
that the output is UTF-8. Apache can only "tell the browser" that
you are sending UTF-8, but not make you really send UTF-8. ;-)
Moreover, this is easy to do from the script instead of from Apache
configuration with:

print "Content-type: text/html; charset=UTF-8;\n\n";

or, if you're using CGI.pm:

print $q->header(
    -charset => 'UTF-8'
);

Hope this helps, somehow. ;)

	Talk to you soon, Michele.

-- 
Michele Beltrame
http://www.italpro.net/mb/
ICQ# 76660101 - e-mail: mb-pzZ8rf8/[email protected]
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.