Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: CGI::Application header problem

by jaldhar (Vicar)
on Dec 27, 2010 at 23:06 UTC ( #879335=note: print w/ replies, xml ) Need Help??

in reply to CGI::Application header problem

You need to separate the headers with commas like this:

$this->header_add( -type => 'text/html', -charset => 'UTF-8');


Comment on Re: CGI::Application header problem
Download Code
Replies are listed 'Best First'.
Re^2: CGI::Application header problem
by Anonyrnous Monk (Hermit) on Dec 27, 2010 at 23:36 UTC

    Shouldn't make any difference here (as charset is part of the Content-Type header):

    $ perl -MCGI -E "say CGI->new()->header(-type => 'text/html', -charset + =>'UTF-8')" Content-Type: text/html; charset=UTF-8

    vs. what the OP had:

    $ perl -MCGI -E "say CGI->new()->header(-type => 'text/html; charset=U +TF-8')" Content-Type: text/html; charset=UTF-8

    (CGI::App's header_add is eventually passed to's header method)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://879335]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2015-11-30 22:19 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (788 votes), past polls