load previous archive with utf-8 encoding

Copied from model.rb's File.read
This commit is contained in:
Stawberri 2014-12-09 14:25:13 -08:00
parent cb4c09b744
commit 6e97383fff

View file

@ -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?