=encoding

Discussion in 'Perl Misc' started by Ben Bullock, Sep 2, 2007.

  1. Ben Bullock

    Ben Bullock Guest

    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?
    Ben Bullock, Sep 2, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Antonio

    Strange encoding behaviour

    Antonio, Dec 29, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    414
    Antonio
    Dec 29, 2004
  2. Mohammed  A khader

    one-hot encoding and fale-safe condition.

    Mohammed A khader, Jan 24, 2005, in forum: VHDL
    Replies:
    12
    Views:
    3,275
    Mike Treseler
    Feb 1, 2005
  3. Hardy Wang

    Encoding.Default and Encoding.UTF8

    Hardy Wang, Jun 8, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    18,794
    Jon Skeet [C# MVP]
    Jun 9, 2004
  4. Replies:
    1
    Views:
    23,312
    Real Gagnon
    Oct 8, 2004
  5. Replies:
    2
    Views:
    351
Loading...

Share This Page