From c01562059163ed040738c8ae2337214bde0f7e72 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Wed, 7 Oct 2009 14:05:46 +0200 Subject: [PATCH] Force output to UTF8 to work on fbsd --- posttotwitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posttotwitter.py b/posttotwitter.py index 636a722..b0048c0 100755 --- a/posttotwitter.py +++ b/posttotwitter.py @@ -93,7 +93,7 @@ class PostToTwitter: c.execute("UPDATE planet.posts SET twittered='t' WHERE id=%(id)s", { 'id': post[0] }) self.db.commit() - print "Twittered: %s" % msg + print unicode("Twittered: %s" % msg).encode('utf8') # Trim a post to the length required by twitter, so we don't fail to post -- 2.39.5