From 7448eef3cf7c10ce2a3293907b0fa3739c26310d Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Tue, 24 Nov 2015 20:49:39 +0000 Subject: Add charset=latin1 kludge for GUI too. Fixes #782. svn path=/trunk/; revision=6192 --- rpki/gui/default_settings.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rpki/gui/default_settings.py') diff --git a/rpki/gui/default_settings.py b/rpki/gui/default_settings.py index 02987bb8..a30b0362 100644 --- a/rpki/gui/default_settings.py +++ b/rpki/gui/default_settings.py @@ -76,8 +76,14 @@ DATABASES = { # removing this after the syncdb is performed as an optimization, # but there isn't an easy way to do this automatically. + # Setting charset to latin1 is a disgusting kludge, but without + # this MySQL 5.6 (and, proably, later) gets tetchy about ASN.1 + # DER stored in BLOB columns not being well-formed UTF8 (sic). + # If you know of a better solution, tell us. + 'OPTIONS': { 'init_command': 'SET storage_engine=INNODB', + 'charset': 'latin1', } } } -- cgit v1.2.3