BasioMeusPuga / twitchy

CLI streamlink wrapper for twitch.tv
GNU General Public License v3.0
91 stars 14 forks source link

issue displaying unicode characters #24

Closed thepixelmonk closed 6 years ago

thepixelmonk commented 6 years ago

There seems to be an issue if a stream has unicode characters in the title. Is this an issue with the script or my terminal setup?

Traceback (most recent call last):
  File "/usr/bin/twitchy", line 11, in <module>
    load_entry_point('twitchy==3.3.0', 'console_scripts', 'twitchy')()
  File "/usr/lib/python3.6/site-packages/twitchy/__main__.py", line 400, in main
    watch_channel(None)
  File "/usr/lib/python3.6/site-packages/twitchy/__main__.py", line 199, in watch_channel
    channels_online).begin()
  File "/usr/lib/python3.6/site-packages/twitchy/twitchy_display.py", line 255, in begin
    self.table_display(final_columns)
  File "/usr/lib/python3.6/site-packages/twitchy/twitchy_display.py", line 205, in table_display
    Colors.ENDC)
UnicodeEncodeError: 'ascii' codec can't encode character '\u3010' in position 58: ordinal not in range(128)