Merge pull request #54 from Stawberri/archive_read_encoding

load previous archive with utf-8 encoding
This commit is contained in:
Jaiden Mispy 2014-12-10 21:24:12 +10:00
commit 371dcb24b8

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?