commit: e932325631035678397e6f4e94d82c94fe34c533
parent 5dfd458241b3b124bae5393c95314602dbfcc0d8
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 4 Apr 2023 23:22:41 +0200
script/ap-represent: Fix UTF-8 handling
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/script/ap-represent b/script/ap-represent
@@ -32,6 +32,7 @@ BSD-3-Clause
=cut
undef $/;
-my $blob = decode_json(<STDIN>);
+# from_json because UTF-8 is already decoded
+my $blob = from_json(<STDIN>);
print_object(1, $blob);
print "\n";