From 74d561810b2bf81617b84bc1581d8b59c359d5c9 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 30 Aug 2020 14:35:52 +0200 Subject: [PATCH] source: keep original file encoding Keep original utf8 as binary to prevent reconversion. --- source.plp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source.plp b/source.plp index 72fdf82..5d445e5 100644 --- a/source.plp +++ b/source.plp @@ -10,7 +10,7 @@ if ($source =~ s{(?<=\Q.inc.pl\E)/jsonp?$}{} and -r $source) { my $data = do $source or die $@ || $! || 'read error'; require JSON; my $converter = JSON->new; - $converter->utf8->indent->space_after->canonical; + $converter->indent->space_after->canonical; $header{content_type} = 'application/json'; $header{content_type} = 'text/plain' if exists $get{debug}; -- 2.30.0