I'm trying to write a custom bittorent tracker, and the one of the
main parameters (info_hash) is getting mangled in django, at least
from what I can see.

here is the URL for testing

http://127.0.0.1:8000/test/?uploaded=0&compact=1&numwant=200&passkey=1234&info_hash=%EF%BF%BDm%EF%BF%BDmfD%D8%9A%EF%BF%BD%EF%BF%BD%C7%86%EF%BF%BD8%EF%BF%BD&event=started&downloaded=0&key=npmqfwpphy&corrupt=0&requirecrypto=0&peer_id=-TR1110-bkgrkxbnfwko&port=51413&supportcrypto=1&left=0

Here is what the META data shows:

QUERY_STRING
'uploaded=0&compact=1&numwant=200&passkey=1234&info_hash=%EF%BF%BDm%EF
%BF%BDmfD%D8%9A%EF%BF%BD%EF%BF%BD%C7%86%EF%BF%BD8%EF%BF
%BD&event=started&downloaded=0&key=npmqfwpphy&corrupt=0&requirecrypto=0&peer_id=-
TR1110-bkgrkxbnfwko&port=51413&supportcrypto=1&left=0'

but here is what the request.GET['info_hash'] returns:

info_hash
u'\ufffdm\ufffdmfD\u061a\ufffd\ufffd\u01c6\ufffd8\ufffd'

Hopefully this is a simple something I'm just missing.

Thanks

John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to