From 69b45d46342281f3681a15bc519880ef0f3dc247 Mon Sep 17 00:00:00 2001 From: Sebb Date: Mon, 25 Nov 2024 16:54:27 +0000 Subject: [PATCH] Try fixing the encoding --- lib/whimsy/sitestandards.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/whimsy/sitestandards.rb b/lib/whimsy/sitestandards.rb index d6db69ba03..e9b3317365 100644 --- a/lib/whimsy/sitestandards.rb +++ b/lib/whimsy/sitestandards.rb @@ -194,7 +194,7 @@ def get_sites(tlp = true) if File.exist? local_copy crawl_time = File.mtime(local_copy).httpdate # show time in same format as last-mod begin - sites = JSON.parse(File.read(local_copy)) + sites = JSON.parse(File.read(local_copy, :encoding => 'utf-8')) rescue StandardError => e require 'wunderbar' Wunderbar.warn "Failed to read #{local_copy}: #{e.inspect}"