From 5d09d8769d7eb7fd8dffdf5c0705e25173c59006 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 19 Jun 2008 14:38:56 +0000 Subject: 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 --- django/core/management/commands/sqlsequencereset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/core/management/commands/sqlsequencereset.py') diff --git a/django/core/management/commands/sqlsequencereset.py b/django/core/management/commands/sqlsequencereset.py index 6b12d83843..e8dad0bef6 100644 --- a/django/core/management/commands/sqlsequencereset.py +++ b/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') -- cgit v1.3