Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #6650 -- Added UTF-8 encoding to SQL output provided by managem…

…ent commands. Thanks to farcaller for the suggestion.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7706 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5d09d8769d7eb7fd8dffdf5c0705e25173c59006 1 parent e726065
@freakboy3742 freakboy3742 authored
View
2  django/core/management/commands/sql.py
@@ -7,4 +7,4 @@ class Command(AppCommand):
def handle_app(self, app, **options):
from django.core.management.sql import sql_create
- return '\n'.join(sql_create(app, self.style))
+ return u'\n'.join(sql_create(app, self.style)).encode('utf-8')
View
2  django/core/management/commands/sqlall.py
@@ -7,4 +7,4 @@ class Command(AppCommand):
def handle_app(self, app, **options):
from django.core.management.sql import sql_all
- return '\n'.join(sql_all(app, self.style))
+ return u'\n'.join(sql_all(app, self.style)).encode('utf-8')
View
2  django/core/management/commands/sqlclear.py
@@ -7,4 +7,4 @@ class Command(AppCommand):
def handle_app(self, app, **options):
from django.core.management.sql import sql_delete
- return '\n'.join(sql_delete(app, self.style))
+ return u'\n'.join(sql_delete(app, self.style)).encode('utf-8')
View
2  django/core/management/commands/sqlcustom.py
@@ -7,4 +7,4 @@ class Command(AppCommand):
def handle_app(self, app, **options):
from django.core.management.sql import sql_custom
- return '\n'.join(sql_custom(app))
+ return u'\n'.join(sql_custom(app)).encode('utf-8')
View
2  django/core/management/commands/sqlflush.py
@@ -7,4 +7,4 @@ class Command(NoArgsCommand):
def handle_noargs(self, **options):
from django.core.management.sql import sql_flush
- return '\n'.join(sql_flush(self.style, only_django=True))
+ return u'\n'.join(sql_flush(self.style, only_django=True)).encode('utf-8')
View
2  django/core/management/commands/sqlindexes.py
@@ -7,4 +7,4 @@ class Command(AppCommand):
def handle_app(self, app, **options):
from django.core.management.sql import sql_indexes
- return '\n'.join(sql_indexes(app, self.style))
+ return u'\n'.join(sql_indexes(app, self.style)).encode('utf-8')
View
2  django/core/management/commands/sqlreset.py
@@ -7,4 +7,4 @@ class Command(AppCommand):
def handle_app(self, app, **options):
from django.core.management.sql import sql_reset
- return '\n'.join(sql_reset(app, self.style))
+ return u'\n'.join(sql_reset(app, self.style)).encode('utf-8')
View
2  django/core/management/commands/sqlsequencereset.py
@@ -6,4 +6,4 @@ class Command(AppCommand):
def handle_app(self, app, **options):
from django.db import connection, models
- return '\n'.join(connection.ops.sequence_reset_sql(self.style, models.get_models(app)))
+ return u'\n'.join(connection.ops.sequence_reset_sql(self.style, models.get_models(app))).encode('utf-8')
Please sign in to comment.
Something went wrong with that request. Please try again.