* content-type charset method
svn path=/trunk/; revision=16841
This commit is contained in:
@@ -90,4 +90,4 @@ my $output = <<'EOF';
|
||||
EOF
|
||||
|
||||
$content->content ($output);
|
||||
$content->render
|
||||
$content->render_utf8
|
||||
|
||||
@@ -73,5 +73,13 @@ sub render {
|
||||
print "\n";
|
||||
}
|
||||
|
||||
sub render_utf8 {
|
||||
my $self = shift;
|
||||
|
||||
print "Content-type: text/html; charset=utf-8\n\n";
|
||||
print $self->{output};
|
||||
print "\n";
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user