[tpm] POD encoding question

Madison Kelly linux at alteeve.com
Wed May 21 07:14:31 PDT 2008


Sergio Salvi wrote:
> Do you have "use utf8;" at the beginning of your file?

I do:

-=-=-=-=-=-
package TB::Get;

use 5.008;
use Carp;
use Symbol;
use strict;
use warnings;
use locale;
use IO::Handle;
use utf8;

# Setup for UTF-8 mode.
binmode STDOUT, ":utf8:";
$ENV{'PERL_UNICODE'}=1;

BEGIN
{
	our $VERSION="0.3.051";
}

=pod

=encoding utf8

=head1 NAME

TB::Get
...
-=-=-=-=-=-

If the internal encoding was an issue, would the error:

-=-=-=-=-=-
digimer at akane:~/projects/tle-bu.org/cgi-bin$ perldoc TB/Get.pm
TB/Get.pm:23: Unknown command paragraph "=encoding utf8"
<standard input>:220: warning: can't find numbered character 141
<standard input>:220: warning: can't find numbered character 141
<standard input>:221: warning: can't find numbered character 141
<standard input>:221: warning: can't find numbered character 140
-=-=-=-=-=-

Still be printed?

Madi


More information about the toronto-pm mailing list