views:

34

answers:

1

In Django what is the url pattern I need to use to handle urlencode characters such as %20

I am using (?P<name>[\w]+) but this only handles alphanumeric characters so % is causing an error

+1  A: 

I was able to make it work using the configuration given below. Check if it will suit your needs.

(?P<name>[\w|\W]+)
Manoj Govindan
+1 Yes, yes, it's a space not a percentage... my bad.
rebus