Skip to content

Commit

Permalink
Try fixing the encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Nov 25, 2024
1 parent 751be50 commit 69b45d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/whimsy/sitestandards.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 69b45d4

Please sign in to comment.