Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Bitcoin symbol with unicode #95

Open
kunambi opened this issue Jun 23, 2021 · 0 comments
Open

Replace Bitcoin symbol with unicode #95

kunambi opened this issue Jun 23, 2021 · 0 comments

Comments

@kunambi
Copy link
Contributor

kunambi commented Jun 23, 2021

A bug has been introduced in 1.6

Experiencing an error when using c.get_symbol("EUR")

  File "/usr/local/lib/python3.8/site-packages/forex_python/converter.py", line 137, in get_symbol
    currency_dict = self._get_data(currency_code)
  File "/usr/local/lib/python3.8/site-packages/forex_python/converter.py", line 125, in _get_data
    currency_data = json.loads(f.read())
  File "/usr/local/lib/python3.8/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1252: ordinal not in range(128)

Created a pull request, !94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant