nichtich / Catmandu-Importer-getJSON

Load JSON data via HTTP GET with Catmandu
https://metacpan.org/release/Catmandu-Importer-getJSON
Other
1 stars 4 forks source link

UTF-8 processing fails for some URLs? #17

Open phochste opened 5 years ago

phochste commented 5 years ago

Any idea why this URL https://bacon.abes.fr/package2kbart/EDPSCIENCES_GLOBAL_ALLJOURNALS_2019-02-08.json doesn't procude a JSON file with:

$ catmandu convert getJSON --from 'https://bacon.abes.fr/package2kbart/EDPSCIENCES_GLOBAL_ALLJOURNALS_2019-02-08.json' 
Oops! malformed UTF-8 character in JSON string, at character offset 786 (before "\x{fffd}Odonto-Stoma...") at /home/catmandu/perl5/perlbrew/perls/perl-5.28.1/lib/site_perl/5.28.1/Catmandu/Importer/getJSON.pm line 230.

Is is because of the mimeType? 'text/json' vs 'application/json'?