voxel51 / eta

ETA: Extensible Toolkit for Analytics
https://voxel51.com
Apache License 2.0
29 stars 13 forks source link

read json file with utf-8 #550

Closed MagicCodess closed 2 years ago

MagicCodess commented 2 years ago

Different language platform especially in windows may cause error here, read json file with utf-8 decoder might work better.

MagicCodess commented 2 years ago

hi @brimoor :), I think the graceful way for this is to detect the json file encoding, in this way users don't need to change their locale encoding which may cause some errors in their other apps. I have committed some new codes which using chardet to detect file encoding, thanks for your reviewing.