in reply to Re: utf8 problems with Pod-ProjectDocs
in thread utf8 problems with Pod-ProjectDocs

I think you got it the wrong way round: encode(...) in end_pod and decode(...) in parse_from_file works for me.

Replies are listed 'Best First'.
Re^3: utf8 problems with Pod-ProjectDocs
by remiah (Hermit) on Sep 25, 2013 at 07:01 UTC

    Hello

    I checked my test at that time, and I find no problems with Pod::ProjectDocs with no patch.
    I wonder whether this is fix of ProjectDocs, or Pod::Parser or my dream ???
    If you post your test case, I would like to check it. Mine was like this, and again, I see no problem now...

    test.pl

    #!/usr/bin/perl -w use strict; use warnings; use utf8; use lib './Pod-ProjectDocs-0.40/lib'; use Pod::ProjectDocs; my $pd = Pod::ProjectDocs->new( outroot => './out', libroot => './lib', title => 'プロジェクト', lan =>'UTF-8', ); print "before gen\n"; $pd->gen();
    And target script in "lib"
    #!/usr/bin/perl =pod =head1 For POD TEST (ä) ä ö ü =cut
    regards