=encoding

B

Ben Bullock

There seems to be a discrepancy between the documentation for perlpod and
its behaviour.

http://perldoc.perl.org/perlpod.html says

=encoding encodingname

This command is used for declaring the encoding of a document. Most
users won’t need this; but if your encoding isn’t US-ASCII or Latin-1,
then put a =encoding encodingname command early in the document so
that pod formatters will know how to decode the document. For
encodingname, use a name recognized by the Encode::Supported module.
Examples:

=encoding utf8

=encoding koi8-r

=encoding ShiftJIS

=encoding big5

However, perldoc says

../mymodule.pm:1: Unknown command paragraph "=encoding utf8"

pod2html produced a similar message.

It doesn't depend on the location of the =encoding since I tried putting
it in various positions.

Can anyone explain this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top