Closed SoCariEVE closed 4 years ago
For example: dashboard/utils.py:16 we call open('invTypes.json', 'r')
dashboard/utils.py:16
open('invTypes.json', 'r')
We need to add the encoding param to force the file to be read as UTF-8:
encoding
open('invTypes.json', 'r', encoding='utf-8')
Actually, I'd like to migrate all functions that use this to using django-eveuniverse, instead of a json file.
django-eveuniverse
The app no longer uses .json files, issue solved.
For example:
dashboard/utils.py:16
we callopen('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')