Thread: SoundKloud
View Single Post
Old 12-06-2012, 10:55 AM   #48
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 qlob View Post
Gah... Looks like SoundClouds sends titles as unicode, while the strings I'm using are defaulting to ascii type, so I'm getting errors... time for
Code:
import kitchen
Unicode to ASCII conversion could be made with str.encode, described at the end of this section of Python Unicode HOWTO. And kitchen conversion is based on this method too.

Useful slides about Uncode handling in Python 2.x.
eureka is offline   Reply With Quote