Sakartu/next — Issue #38: next doesn't always handle unicode correctly
Author: Sakartu
Created: 2012-01-10 21:16:13+00:00
State: open
Labels: Bug

What season are you at for Family Guy (1-10)?
Season: 10
What ep are you at in season 10?
1. s10e01 - Lottery Fever
2. s10e02 - Seahorse Seashell Party (2)
3. s10e03 - Screams Of Silence: The Story of Brenda Q
4. s10e04 - Stewie Goes for a Drive
5. s10e05 - Back to the Pilot
6. s10e06 - Thanksgiving
7. s10e07 - Amish Guy
8. s10e08 - Cool Hand Peter
9. s10e09 - Grumpy Old Man
10. s10e10 - Meg & Quagmire
11. s10e11 - The Blind Side
Traceback (most recent call last):
File "./next.py", line 81, in
main()
File "./next.py", line 76, in main
ui.cmdloop()
File "/Users/user/bin/next/next/tui/tui.py", line 27, in cmdloop
cmd.Cmd.cmdloop(self)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cmd.py", line 142, in cmdloop
stop = self.onecmd(line)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cmd.py", line 219, in onecmd
return func(arg)
File "/Users/user/bin/next/next/tui/tui.py", line 246, in do_scan
self.add_show_details(found_show)
File "/Users/user/bin/next/next/tui/tui.py", line 58, in add_show_details
print u'{id:3d}. s{S:>02d}e{E:>02d} - {title}'.format(id=i + 1, S=ep.season, E=ep.epnum, title=ep.title)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 19: ordinal not in range(128)

faulty db row:
3506|Family Guy|10|12|Livin’ On A Prayer|2012-01-29