in reply to Re: utf-8 always forced !!!
in thread utf-8 always forced !!!

Hi Phaylon ! Please detail me how to do that (I'm almost a newbie)... Thx, Germain

Replies are listed 'Best First'.
Re^3: utf-8 always forced !!!
by phaylon (Curate) on Feb 12, 2005 at 18:23 UTC
    See the CGI Documentation at cpan. Look for "Creating a standard HTTP Header".

    Ordinary morality is for ordinary people. -- A.C.
      I'm very sorry, but after reading the CPAN documentation I still don't understand how to do that... Please could you just write a few PERL lines showing practically the needed code to achieve the targeted result. Thank a lot and again sorry for my ignorance !
        Well, see the code below from perldoc CGI. Isn't it obvious how to set the charset?
        print $query->header(-type=>'image/gif', # <-think text/html -nph=>1, -status=>'402 Payment required', -expires=>'+3d', -cookie=>$cookie, -charset=>'utf-7', # <-charset -attachment=>'foo.gif', -Cost=>'$2.00');

        Ordinary morality is for ordinary people. -- Aleister Crowley