Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #3754 -- Re-introduced utf-8 as default encoding for interactio…

…n 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
  • Loading branch information...
commit 1f9711ffb02f89da445251366d3827f39b05da11 1 parent 9fb4018
Malcolm Tredinnick malcolmt authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  django/db/backends/mysql/base.py
2  django/db/backends/mysql/base.py
View
@@ -80,6 +80,8 @@ def cursor(self):
if not self._valid_connection():
kwargs = {
'conv': django_conversions,
+ 'charset': 'utf8',
+ 'use_unicode': False,
}
if settings.DATABASE_USER:
kwargs['user'] = settings.DATABASE_USER
Please sign in to comment.
Something went wrong with that request. Please try again.