From 5f8976a29437b4979907d47516db286981a91bff Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Tue, 15 Dec 2020 03:18:12 +0000 Subject: [PATCH] Fix converter encoding. --- blog/convert.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/convert.rb b/blog/convert.rb index bb74a36..e8460d1 100644 --- a/blog/convert.rb +++ b/blog/convert.rb @@ -31,5 +31,5 @@ files.each do |file| document.search('//*[not(ancestor-or-self::code)]/text()').each do |t| t.replace(perform_katex_sub(inline_cache, display_cache, t.content)) end - File.write(file, document.to_html) + File.write(file, document.to_html(encoding: 'US-ASCII')) end