This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push: new 69b45d46 Try fixing the encoding 69b45d46 is described below commit 69b45d46342281f3681a15bc519880ef0f3dc247 Author: Sebb <s...@apache.org> AuthorDate: Mon Nov 25 16:54:27 2024 +0000 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 d6db69ba..e9b33173 100644 --- a/lib/whimsy/sitestandards.rb +++ b/lib/whimsy/sitestandards.rb @@ -194,7 +194,7 @@ module SiteStandards 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}"