carpentries-incubator / fair-research-software

A course on tools and practices for open, sustainable and FAIR (Findable, Accessible, Interoperable and Reusable) research software
https://carpentries-incubator.github.io/fair-research-software/
Other
7 stars 4 forks source link

Episode 5: Specify the `encoding` when reading in JSON file #114

Open milanmlft opened 4 days ago

milanmlft commented 4 days ago

In episode 5, we're reading in the eva-data.json file. However, some participants got a UnicodeDecodeError because of the unicode characters present in the data.

Specifying encoding="utf8" when opening the file might help, although it might be worth figuring out why only some people got this error.