declare pod encoding
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 8 Sep 2019 14:28:33 +0000 (16:28 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 9 Sep 2019 22:37:53 +0000 (00:37 +0200)
Most renderers will output in the same encoding as the pod document,
which is ascii (causing an unaccented e for E<eacute>) or worse, latin1.
Best to explicitly use UTF-8 as all i/o should be.

barcat

diff --git a/barcat b/barcat
index db9de174eee475b66ced06814c50dd21562d6552..bdddf65df25fb53b9c501b6d9ac132a437cb6281 100755 (executable)
--- a/barcat
+++ b/barcat
@@ -192,6 +192,7 @@ if ($opt{stat}) {
 }
 
 __END__
+=encoding utf8
 
 =head1 NAME
 
@@ -354,7 +355,7 @@ External datasets, like movies per year:
 But please get I<jq> to process JSON
 and replace the manual selection by C<< jq '.[].year' >>.
 
-PokE<eacute>mon height comparison:
+Pokémon height comparison:
 
     curl https://github.com/Biuni/PokemonGO-Pokedex/raw/master/pokedex.json |
     jq -r '.pokemon[] | [.height,.num,.name] | join(" ")' | barcat