in reply to utf8 problems with Pod-ProjectDocs
I couldn't fully trace this, nor understand all. If you are going to have some trial, 4 lines of dirty patch to ProjectDocs::Parse.pm seems to me work.
1. decode $self->{buffer} to character. Add 2 lines
just after the lineuse Encode qw/decode/; $self->{buffer}=decode('UTF-8', $self->{buffer});
,which is in the "end_pos" sub.$self->{buffer} = join "\n", qq[<div class="pod">], $self->{buffer}, " +</div>";
just afteruse Encode(qw/encode/); $self->{buffer}=encode('UTF-8', $self->{buffer});
,which is in "parse_from_file" sub.$self->SUPER::parse_from_file(@_);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: utf8 problems with Pod-ProjectDocs
by LanX (Saint) on Sep 25, 2012 at 11:02 UTC | |
|
Re^2: utf8 problems with Pod-ProjectDocs
by Anonymous Monk on Sep 23, 2013 at 09:10 UTC | |
by remiah (Hermit) on Sep 25, 2013 at 07:01 UTC |