ekristen / mythboxee

The seamless blending of MythTV and Boxee
http://erikkristensen.com/project/mythboxee/
MIT License
14 stars 3 forks source link

'ascii' codec can't encode character u'\xf1' in position 141 #13

Closed matthewclaussen closed 14 years ago

matthewclaussen commented 14 years ago

Since I haven't had any luck with Vista I tried out the latest 4.23.3 beta on my Ubuntu system. Some good news I have gathered from this is I don't seem to be having the mysql connection error, I guess that is just a problem with Windows systems...

I seem to be having a problem with a character not encoding properly. I tried changing this recording.title.encode('utf-8') to str(recording.title) but no luck.

Here are both logs. str(recording.title) http://pastebin.com/ukmAMva1 recording.title.encode('utf-8') http://pastebin.com/CXTPwQp0

ekristen commented 14 years ago

My guess just by looking at the logs would be that it is the description field throwing the error, can you switch out the str(recording.description) for recording.description.encode('utf-8') and let me know what happens.

Thanks, -Erik

matthewclaussen commented 14 years ago

I switched the two and here is the new log. http://pastebin.com/prMJv63Z

matthewclaussen commented 14 years ago

hmm that one pastebin didn't work. I'll post a new one in a bit.

matthewclaussen commented 14 years ago

http://mythboxee.pastebin.com/CXhS3ZaV

ekristen commented 14 years ago

Try this file ... http://github.com/ekristen/mythboxee/raw/encoding/mythboxee.py

matthewclaussen commented 14 years ago

It worked! Did I miss another str(recording.description)? Not that it matters cause it works!

ekristen commented 14 years ago

fixes ascii encoding problem, closed by 812425bfe5c99475b6dee36316548bc2cd8eaf7a