On 08/27/2010 09:12 AM, Eustachy wrote:
Hello!

I need change in documents generated by podwebserver line <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" > to
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
Which subrutine I must subclassing?

Hi! Well, I expected there would have to be method overriding or other class stuff...

But I'm very surprised: it's as simple as changing one variable before starting the server. Just have a podwebserver that consists of this:

#!/usr/bin/perl
use Pod::Webserver;
$Pod::Simple::HTML::Content_decl =
q{<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />};
Pod::Webserver::httpd();


Now, there's a few reasons that could cause your question, and I think some of the possibilities aren't going to be solved by changing $Pod::Simple::HTML::Content_decl.

If changing $Pod::Simple::HTML::Content_decl doesn't fix your situation, then this isn't about the <meta...> tag at all, and the problem might instead be something that needs an "=encoding" line in your Pod files.
There's some examples you can look at in:
  http://cpansearch.perl.org/src/DWHEELER/Pod-Simple-3.14/t/corpus/

Reply via email to