Commit 750e24ed authored by Michael Rose's avatar Michael Rose

hpff: fix encoding

parent 282753ab
......@@ -19,7 +19,7 @@ class IndexHpffMetadata
req.headers['User-Agent'] = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36'
end
document = Nokogiri::HTML.parse(response.body)
document = Nokogiri::HTML.parse(response.body.force_encoding('iso-8859-1').encode('utf-8'))
parsed_doc = parse_stories(document)
HpffStory.transaction do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment