summaryrefslogtreecommitdiffstatshomepage
path: root/wordpress-to-dir.py
diff options
context:
space:
mode:
authorGravatar Andy Wingo2008-02-27 21:42:10 +0100
committerGravatar Andy Wingo2008-02-27 21:42:10 +0100
commit227bc9cea1984b89b848b1b2a244695a12189f9e (patch)
tree0433a78d01718d67b711661e12c2d770c3abdfb7 /wordpress-to-dir.py
parentbc57e2a655fac45eb3ad14792513d2a516aff9c5 (diff)
downloadtekuti-227bc9cea1984b89b848b1b2a244695a12189f9e.tar.gz
tekuti-227bc9cea1984b89b848b1b2a244695a12189f9e.zip
incremental reindexing, import charset fixes, other thingies
Diffstat (limited to 'wordpress-to-dir.py')
-rw-r--r--wordpress-to-dir.py1
1 files changed, 1 insertions, 0 deletions
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))