diff options
Diffstat (limited to 'wordpress-to-dir.py')
-rw-r--r-- | wordpress-to-dir.py | 1 |
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)) |