Perl-Advent icon indicating copy to clipboard operation
Perl-Advent copied to clipboard

UTF-8 is double encoded in #!vim perl

Open choroba opened this issue 1 year ago • 3 comments

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";

choroba avatar Jan 02 '25 20:01 choroba

Related to #505

oalders avatar Jan 02 '25 20:01 oalders

Oh, I didn't check closed issues 🤡

choroba avatar Jan 02 '25 20:01 choroba

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!

oalders avatar Jan 02 '25 20:01 oalders