defaults to utf-8
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@189
48953598-375a-da11-a14b-
00016c27c3ee
sub send_output {
my $r = shift;
- $r->{ar}->content_type( $r->{content_type} );
+ $r->{ar}->content_type( $r->{content_type}."; charset=".$r->{document_encoding} );
$r->{ar}->headers_out->set( "Content-Length" => length $r->{output} );
APACHE2 || $r->{ar}->send_http_header;
$r->{ar}->print( $r->{output} );
my $r = shift;
print $r->{cgi}->header(
-type => $r->{content_type},
+ -charset => $r->{document_encoding},
-content_length => length $r->{output},
);
print $r->{output};