#5877: Force manage.py to output UTF-8 to avoid UnicodeEncodeErrors
-------------------------------------+-------------------------------------
Reporter: anonymous | Owner: nobody
Type: Uncategorized | Status: reopened
Component: Core (Management | Version: SVN
commands) | Resolution:
Severity: Normal | Triage Stage: Design
Keywords: | decision needed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by joni):
* status: closed => reopened
* severity: => Normal
* resolution: worksforme =>
* easy: => 0
* ui_ux: => 0
* type: => Uncategorized
Comment:
This doesn't work for me with django 1.3.1, I get this error:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in
position 0: ordinal not in range(128)
{{{
#coding=utf-8
from django.core.management.base import BaseCommand
class Command(BaseCommand):
def handle(self, *args, **options):
self.stdout.write(u'รก')
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/5877#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.