From 227bc9cea1984b89b848b1b2a244695a12189f9e Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Wed, 27 Feb 2008 21:42:10 +0100 Subject: incremental reindexing, import charset fixes, other thingies --- wordpress-to-dir.py | 1 + 1 file changed, 1 insertion(+) (limited to 'wordpress-to-dir.py') diff --git a/wordpress-to-dir.py b/wordpress-to-dir.py index 2c9f17a..239c80a 100644 --- a/wordpress-to-dir.py +++ b/wordpress-to-dir.py @@ -98,6 +98,7 @@ def main(args): os.chdir(d) _, host, user, passwd, database = args cxn = db.connect(host=host, user=user, passwd=passwd, db=database) + cxn.cursor().execute("set names 'utf8'") for post in all_posts(): write_post (post, post_categories (post), post_comments (post)) -- cgit v1.2.3-54-g00ecf