From: Mischa POSLAWSKY Date: Sun, 8 Sep 2019 14:28:33 +0000 (+0200) Subject: declare pod encoding X-Git-Tag: v1.05~20 X-Git-Url: http://git.shiar.nl/barcat.git/commitdiff_plain/494a76d93fbc6c24ed893c261d5e670ddfebf9a2 declare pod encoding Most renderers will output in the same encoding as the pod document, which is ascii (causing an unaccented e for E) or worse, latin1. Best to explicitly use UTF-8 as all i/o should be. --- diff --git a/barcat b/barcat index db9de17..bdddf65 100755 --- 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 to process JSON and replace the manual selection by C<< jq '.[].year' >>. -PokEmon 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