Perl-Advent
Perl-Advent copied to clipboard
UTF-8 is double encoded in #!vim perl
As can be seen in 2024-12-15, UTF-8 encoded characters are displayed correctly in =begin perl, but they're double encoded in #!vim perl:
=begin perl
ok( headerOK( $str ), "«$str» is OK" );
renders «$str» correctly, but
#!vim perl
debug "«$firstLine» is proper markdown ho, ho, ho";
shows as
debug "«$firstLine» is proper markdown ho, ho, ho";
Related to #505
Oh, I didn't check closed issues 🤡
Maybe it shouldn't have been closed. 😄 I guess there's an ongoing issue here. The vim syntax highlight is nice because you can choose an arbitrary language, but it sometimes does wacky things with Perl. This would all be easier if we just used Markdown, but I guess Pod is part of the charm.
If you feel inclined to send a PR with more fixes, I'm happy to merge!