#5281: Non unicode GET-data is not allowed? -----------------------------------+---------------------------------------- Reporter: [EMAIL PROTECTED] | Owner: mtredinnick Status: new | Component: HTTP handling Version: SVN | Keywords: unicode GET Stage: Unreviewed | Has_patch: 0 -----------------------------------+---------------------------------------- I try access my domain and pass the escaped URL-character for for an example 238 which is %EE This is of course just an example. My actual implementation has longer values[[BR]] http://mydomain.com/?info_hash=%EE [[BR]][[BR]] In my view I do something like this[[BR]][[BR]] {{{ def handle_stuff(request): get_data = request.GET.copy() info_hash = get_data["info_hash"] assert(False) # for debugging }}} The relevant debug info[[BR]] get_data == <MultiValueDict: {u'info_hash': [u'\ufffd']}>[[BR]] info_hash == u'\ufffd'[[BR]][[BR]] \ufffd is the error character in unicode, so basically standard URL escaped arguments as GET does not work in django as of the unicode branch.[[BR]][[BR]] This makes it impossible to interface with any external application that uses this. In my case I was writing a bittorrent tracker, and bittorrent uses non unicode GET-data for it's transmissions. In other words... until this is fixed, using django as a bittorrent tracker is impossible, as well as interfacing django with any other application that uses standard url escaped characters as GET-data.
-- Ticket URL: <http://code.djangoproject.com/ticket/5281> 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 -~----------~----~----~----~------~----~------~--~---
