Thread: SoundKloud
View Single Post
Old 12-06-2012, 11:00 AM   #49
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by twobob View Post
EDIT: Did you try to search for the term "happy" (this returns helpful testing results)
even with # encoding: utf-8 (as second line)
Now I see...

Instead of
Code:
to_bytes(track.title)
use
Code:
track.title.encode('utf-8')
It's built-in method of any Python string.
eureka is offline   Reply With Quote