vfilimonov / pydatastream

Python interface to the Refinitiv Datastream (former Thomson Reuters Datastream)
MIT License
71 stars 30 forks source link

string encoding error #8

Closed alastairbs closed 8 years ago

alastairbs commented 8 years ago

When importing a data item which has a currency symbol in the title I get the following error:

"UnicodeEncodeError: 'ascii' codec can't encode character u'\xa3' in position 0: ordinal not in range(128)"

This was when importing symbol "USDOLLR" with field "ER" (i.e.: DWE.fetch('USDOLLR','ER', date_from='2015'). The title of the data series has both the £ and $ characters in it.

vfilimonov commented 8 years ago

Please check develop - it should be fine now

alastairbs commented 8 years ago

Yes that fixed it. Thanks.

vfilimonov commented 8 years ago

done - now in pypi: v0.4.3