mirror of
https://github.com/thewesker/twitter_ebooks.git
synced 2025-12-23 05:41:08 -05:00
load previous archive with utf-8 encoding
Copied from model.rb's File.read
This commit is contained in:
@@ -50,7 +50,7 @@ module Ebooks
|
||||
@client = client || make_client
|
||||
|
||||
if File.exists?(@path)
|
||||
@tweets = JSON.parse(File.read(@path), symbolize_names: true)
|
||||
@tweets = JSON.parse(File.read(@path, :encoding => 'utf-8'), symbolize_names: true)
|
||||
log "Currently #{@tweets.length} tweets for #{@username}"
|
||||
else
|
||||
@tweets.nil?
|
||||
|
||||
Reference in New Issue
Block a user