MonoliYoda / evve_dashboard_dev

0 stars 2 forks source link

Opening UTF-8 encoded `.json` files fails for OSes where UTF-8 is not default (Windows) #15

Closed SoCariEVE closed 4 years ago

SoCariEVE commented 4 years ago

For example: dashboard/utils.py:16 we call open('invTypes.json', 'r')

We need to add the encoding param to force the file to be read as UTF-8:

open('invTypes.json', 'r', encoding='utf-8')

MonoliYoda commented 4 years ago

Actually, I'd like to migrate all functions that use this to using django-eveuniverse, instead of a json file.

MonoliYoda commented 4 years ago

The app no longer uses .json files, issue solved.