#!/usr/bin/env python
# -*- coding: utf-8 -*-
import MySQLdb
conn = MySQLdb.connect('localhost', 'django_user', 'haha123', 'mydb')
cur = conn.cursor()
f = open('/home/kave/projects/cb/database/country_code_drupal_nov_2011.txt')
cur.execute("INSERT INTO myapp_app_currency (currency) VALUES ('USD - $'),('EUR - €'), ('GBP - £'), ('CAD - $'), ('AUD - $'), ('BRL - R$');")
For some reason I can insert this data successfully into my database, however two entries get corrupted.
EUR - € becomes EUR - €
GBP - £ becomes GBP - £
I thought I had set it as utf8 and it should roll, why there a problem only with those two characters?