jayme-github / steam_idle

Idle Steam apps/games for card drops
GNU General Public License v2.0
14 stars 1 forks source link

trademark™ unicode in game title throws error #3

Closed ghost closed 8 years ago

ghost commented 8 years ago

While idling games with ™ (Unicode character 2122) in game title, I get this error:

Traceback (most recent call last):
  File "steam_idle_cli.py", line 158, in <module>
    main_idle(apps)
  File "steam_idle_cli.py", line 30, in main_idle
    p = IdleChild(app)
  File "/home/nick/.steam_idle/steam_idle/idle.py", line 18, in __init__
    self.name += '-[%s]' % str(self.app.name if self.app.name else self.app.appid)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2122' in position 24: ordinal not in range(128)
jayme-github commented 8 years ago

duplicate of issue #4