load previous archive with utf-8 encoding
Copied from model.rb's File.read
This commit is contained in:
parent
cb4c09b744
commit
6e97383fff
1 changed files with 1 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue