relaton / relaton-iso

RelatonIso: ISO Standards metadata using the BibliographicItem model
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

rspec not working: encoding #28

Closed opoudjis closed 6 years ago

opoudjis commented 6 years ago
  1) Isobib::IsoBibliography fetch hits of page
     Failure/Error: while resp.body !~ /<strong/ && n < 10

     ArgumentError:
       invalid byte sequence in US-ASCII
     # ./lib/isobib/scrapper.rb:183:in `=~'
     # ./lib/isobib/scrapper.rb:183:in `!~'
     # ./lib/isobib/scrapper.rb:183:in `get_page'
     # ./lib/isobib/scrapper.rb:57:in `parse_page'
     # ./lib/isobib/hit.rb:22:in `fetch'
     # ./lib/isobib/workers_pool.rb:18:in `block (2 levels) in worker'

— which is why I'd introduced

        resp = Net::HTTP.get_response(uri).encode("UTF-8")
opoudjis commented 6 years ago

Closing: duplicates #26