From 1f9711ffb02f89da445251366d3827f39b05da11 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Tue, 20 Mar 2007 23:32:39 +0000 Subject: [PATCH] Fixed #3754 -- Re-introduced utf-8 as default encoding for interaction with MySQL backend (a side-effect of [4724]). Thanks Andy Dustman and Michael Radziej. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4760 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/backends/mysql/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/db/backends/mysql/base.py b/django/db/backends/mysql/base.py index 081c1185a5e..94718595cb1 100644 --- a/django/db/backends/mysql/base.py +++ b/django/db/backends/mysql/base.py @@ -80,6 +80,8 @@ class DatabaseWrapper(local): if not self._valid_connection(): kwargs = { 'conv': django_conversions, + 'charset': 'utf8', + 'use_unicode': False, } if settings.DATABASE_USER: kwargs['user'] = settings.DATABASE_USER