#3690: the smart_unicode in newforms/util.py shouldn't assume utf-8 encoded
strings in utf-8 environment
--------------------------------------+-------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: new | Component: django.newforms
Version: SVN | Resolution:
Keywords: | Stage: Unreviewed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 1
--------------------------------------+-------------------------------------
Changes (by [EMAIL PROTECTED]):
* needs_better_patch: => 1
* has_patch: 0 => 1
* needs_tests: => 0
* needs_docs: => 0
Comment:
This is the easiest patch that solves it.
Problems:[[BR]]
this will work for european languages, but not for russian / asian
[[BR]]
after discussion on #django we did not agree, if this should be done
here, or in some middleware[[BR]]
this could be improved in two ways: one can pass other encoding to use
as additional argument to smart_unicode(), or it could try to guess
incoming encoding.[[BR]]
--
Ticket URL: <http://code.djangoproject.com/ticket/3690#comment:1>
Django Code <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
-~----------~----~----~----~------~----~------~--~---