On Sun, Aug 8, 2021 at 6:52 PM Ricardo Signes <perl.p5p@rjbs.manxome.org> wrote: > On Sat, Aug 7, 2021, at 11:55 AM, Dan Book wrote: > > Yes. POD parsers and the perl interpreter do not read the same parts of > the file, ever. Thus they must each indicate to their corresponding parsers > what encoding they contain. > > > Assuming you mean this exactly as written, I don't believe this is true. > > use v5.34.0; > use warnings; > > my $string = <<'END'; > =encoding utf8 > > This is løvely døcumentation. > > =cut > END > > say $string; > > > Then… > > dinah:~$ perl demo.pl > =encoding utf8 > > This is løvely døcumentation. > > =cut > > dinah:~$ pod2text demo.pl > This is løvely døcumentation. > > > It's all a muddle. > Yes, I worded it imprecisely. But it remains that even when abusing the parsers to see each other's components, they still only follow their own encoding declarations. -DanThread Previous | Thread Next