From: Mischa POSLAWSKY Date: Fri, 2 Feb 2024 20:10:09 +0000 (+0100) Subject: source: read highlighted cache as unicode X-Git-Url: http://git.shiar.net/sheet.git/commitdiff_plain/ba59e8d53b056133db5322dce1510a0044971c1f source: read highlighted cache as unicode Fix double encoding of utf8. --- diff --git a/source.plp b/source.plp index 863ef35..cf22e34 100644 --- a/source.plp +++ b/source.plp @@ -83,7 +83,7 @@ else { my $cachefile = "source/$source.html"; if (-e $cachefile and (stat $cachefile)->[9] >= (stat $path)->[9]) { say '
';
-		print ReadFile($cachefile);
+		print decode_utf8(ReadFile($cachefile));
 		say '
'; exit; }