palfrey/nih — Issue #14: last.fm unicode issues
Author: palfrey
Created: 2011-10-25 09:15:26+00:00
State: open

[Tue Oct 25 10:08:17 2011] [error] Traceback (most recent call last):
[Tue Oct 25 10:08:17 2011] [error] File "/usr/share/nih/simple_player/player.py", line 39, in message_handler
[Tue Oct 25 10:08:17 2011] [error] self.next_track()
[Tue Oct 25 10:08:17 2011] [error] File "/usr/share/nih/jukebox/jsonfuncs.py", line 200, in next_track
[Tue Oct 25 10:08:17 2011] [error] play_current()
[Tue Oct 25 10:08:17 2011] [error] File "/usr/share/nih/jukebox/jsonfuncs.py", line 240, in play_current
[Tue Oct 25 10:08:17 2011] [error] post(**track)
[Tue Oct 25 10:08:17 2011] [error] File "/usr/share/nih/jukebox/audioscrobbler.py", line 716, in posttrack
[Tue Oct 25 10:08:17 2011] [error] mbid=mbid)
[Tue Oct 25 10:08:17 2011] [error] File "/usr/share/nih/jukebox/audioscrobbler.py", line 746, in addtrack
[Tue Oct 25 10:08:17 2011] [error] track = {'a[%s]': artist_name.decode(enc).encode('utf8'),
[Tue Oct 25 10:08:17 2011] [error] UnicodeEncodeError: 'ascii' codec can't encode character u'\\xf1' in position 2: ordinal not in range(128)