From afdeab028259c9cbab6112fe005a1e78c135fe43 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 25 Oct 2015 00:38:20 +0000 Subject: Force MySQL characterset to Latin1 to suppress constant whining about incorrectly coded UTF-8 in BLOB fields holding ASN.1 DER data. This is wrong in so many ways that I don't even know where to start, but, bottom line, forcing Latin1 here is just making MySQL 5.6+ revert to the behavior in MySQL 5.5. This is just a workaround. The real solution is probably to switch to an SQL engine that's not quite such a kludge tower. svn path=/branches/tk705/; revision=6146 --- rpki/django_settings/irdb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rpki/django_settings/irdb.py') diff --git a/rpki/django_settings/irdb.py b/rpki/django_settings/irdb.py index 11e7417a..56ed92ff 100644 --- a/rpki/django_settings/irdb.py +++ b/rpki/django_settings/irdb.py @@ -32,7 +32,8 @@ DATABASES = dict( default = dict(ENGINE = "django.db.backends.mysql", NAME = cfg.get("sql-database", section = "irdbd"), USER = cfg.get("sql-username", section = "irdbd"), - PASSWORD = cfg.get("sql-password", section = "irdbd"))) + PASSWORD = cfg.get("sql-password", section = "irdbd"), + OPTIONS = dict(charset = "latin1"))) # Apps. -- cgit v1.2.3