Commit 5d09d876 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #6650 -- Added UTF-8 encoding to SQL output provided by management...

Fixed #6650 -- Added UTF-8 encoding to SQL output provided by management commands. Thanks to farcaller for the suggestion.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7706 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent e726065d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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')
+1 −1
Original line number Diff line number Diff line
@@ -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')
+1 −1
Original line number Diff line number Diff line
@@ -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')
+1 −1
Original line number Diff line number Diff line
@@ -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')
+1 −1
Original line number Diff line number Diff line
@@ -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')
Loading