maxbbraun / trump2cash

A stock trading bot powered by Trump tweets
https://trump2cash.biz
MIT License
6.25k stars 855 forks source link

UnicodeEncodeError #34

Closed Dotnaught closed 7 years ago

Dotnaught commented 7 years ago

Entering ./benchmark.py > benchmark.md in a new install returns a Unicode error, apparently due to concatenating unexpected types. Traceback (most recent call last): File "./benchmark.py", line 191, in <module> print "\n\n".join(lines) UnicodeEncodeError: 'ascii' codec can't encode character u'\u2026' in position 144: ordinal not in range(128)

maxbbraun commented 7 years ago

Try this:

export PYTHONIOENCODING="UTF-8"
Dotnaught commented 7 years ago

That did it. Thanks.