Category Archives: python

Compiling vim with python support on Arch Linux; or, just using gvim

I was looking forward to using ConqueTerm on vim but was confronted with the following error: Conque ERROR: Python interface cannot be loaded Your ersion of Vim appears to be installed without the Python interface… Alas, the eternal struggle between convenience & elegance. Because I should be doing more important things than blogging, I slapped […]

Working with utf8 (like Chinese) with sqlAlchemy + Elixir

Today I’ve been playing around with sqlAlchemy and Elixir. I was having problems with how some strings (Chinese Characters) were being encoded and stored. The issue was with the metadata.bind statement (create_engine() without Elixir) before it was: metadata.bind = ‘mysql://username:password@localhost/database’ You need to select utf8 encoding manually. metadata.bind = ‘mysql://username:password@localhost/database?charset=utf8’ or, plain SQLAlchemy: db = […]