Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello there !

Please I have an headache to share with you: I'm able to see the character set Latin-1 (iso-8859-1) automatically selected when I load one of mine HTMP pages from my Apache server located remotely. But if I run one of mine Perl scripts, with just...

#!/usr/bin/perl print "Content-type: text/html\n\n"; print '<!doctype html public "-//w3c//dtd html 4.0 transitional//en">< +html><head><title>2004 VEHICALL</title><meta http-equiv="Content-Type +" content="text/html; charset=iso-8859-1"></head><body>hello</body></ +htm>';

...the utf-8 is always selected ??!!%%%

Thanks in advance for any help you could provide !
Germain from Geneva

20050211 Janitored by Corion: Added formatting, code tags

Replies are listed 'Best First'.
Re: utf-8 always forced !!!
by phaylon (Curate) on Feb 11, 2005 at 13:42 UTC
    You could try including the charset in the header.

    Ordinary morality is for ordinary people. -- A.C.
      Hi Phaylon ! Please detail me how to do that (I'm almost a newbie)... Thx, Germain
        See the CGI Documentation at cpan. Look for "Creating a standard HTTP Header".

        Ordinary morality is for ordinary people. -- A.C.