MicroPyramid / forex-python

Foreign exchange rates, Bitcoin price index and currency conversion using ratesapi.io
http://forex-python.readthedocs.io/en/latest/usage.html
MIT License
661 stars 195 forks source link

Specify utf-8 as the encoding for currencies.json #110

Open cgeorgelee opened 2 years ago

cgeorgelee commented 2 years ago

This is a fix for issue: "Attempt to read /raw_data/currencies.json as ascii instead of utf-8 breaks get_symbol()" - https://github.com/MicroPyramid/forex-python/issues/109

We tell the file reader the encoding of /raw_data/currencies.json instead of using python auto detection.