From 494a76d93fbc6c24ed893c261d5e670ddfebf9a2 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 8 Sep 2019 16:28:33 +0200 Subject: [PATCH] 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. --- barcat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.30.0