Nic0 / tyrs

Twitter and Identica client using curses
http://tyrs.nicosphere.net
61 stars 10 forks source link

UnicodeEncodeError #49

Closed jstitch closed 13 years ago

jstitch commented 13 years ago

Running tyrs after installation shows a menu to select Twitter/Identi.ca services, but after displaying menu, a UnicodeEncodeError throws. Traceback:

Traceback (most recent call last):
  File "./tyrs", line 16, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/tyrs/tyrs.py", line 61, in main
    init_conf()
  File "/usr/lib/python2.7/site-packages/tyrs/tyrs.py", line 73, in init_conf
    conf = config.Config(arguments())
  File "/usr/lib/python2.7/site-packages/tyrs/config.py", line 47, in __init__
    self.new_account()
  File "/usr/lib/python2.7/site-packages/tyrs/config.py", line 115, in new_account
    choice = self.ask_service()
  File "/usr/lib/python2.7/site-packages/tyrs/config.py", line 124, in ask_service
    choice = raw_input(_('Your choice? > '))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xbf' in position 0: ordinal not in range(128)
Nic0 commented 13 years ago

This commit should solves it.

Thanks for reporting it, please let me know if you still have some trouble with encoding issues.

jstitch commented 13 years ago

thank you! I just found another error in the code when I downloaded the commit. I think I managed to fix it and sent you a Pull request for that... hope it helps!