Subject: | [PATCH] utf-8 charset |
Modules with non-ASCII text in their POD (like Spiffy.pm whose author is
Ingy döt Net) are rendering incorrectly. The following trivial patch
corrects this for me (Mac Firefox).
--- /Users/chris/perl/lib/perl5/site_perl/Pod/POM/Web.pm
2007-04-24 15:16:17.000000000 -0500
+++ lib/Pod/POM/Web.pm 2007-04-26 01:56:59.000000000 -0500
@@ -704,7 +708,7 @@
sub send_content {
my ($self, $args) = @_;
my $length = length $args->{content};
- my $mime_type = $args->{mime_type} || "text/html";
+ my $mime_type = $args->{mime_type} || "text/html; charset=utf-8";
my $modified = gmtime $args->{mtime};
my $code = $args->{code} || 200;