#12849: django's development server raises an encoding exception when trying to
colorize non-ascii text
------------------------------------------------+---------------------------
Reporter: jype | Owner: nobody
Status: new | Milestone: 1.2
Component: django-admin.py runserver | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------------------+---------------------------
Changes (by kmtracey):
* stage: Ready for checkin => Accepted
Comment:
A traceback from the reported problem would have been helpful here.
I don't understand why the fix involves trying to guess an encoding.
sys.stdout/sys.stderr have encodings, if we just pass unicode things
should work (assuming the output device encoding can actually encode
whatever is being sent). If the traceback from when the problem occurs
shows it's being caused by some `str()` call in Django, then I think just
removing the `str()`s would be sufficient.
--
Ticket URL: <http://code.djangoproject.com/ticket/12849#comment:10>
Django <http://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.