On 6/30/06, mamcxyz <[EMAIL PROTECTED]> wrote:
> In where I need to look to see exactly what is evaluated?


django.core.urlresolvers.RegexURLPattern.resolve

...and from the look of that test, no, you don't understand the encoding issue.

it'd be more like:

re.match(r'[a-zA-Z0-9\%\\\xED-\xEF]', 'Medill\xEDn')
...In other words, your character class should include every character
you'll accept.

Here's an excellent tutorial:
http://www.regular-expressions.info/unicode.html

Unfortunately, googling for "unicode regex url" turned up nothing
useful.  I think a django-provided character class for "any char other
than URL-specials like ?#&/" would be good.

On that tack, perhaps [^?#&=/] (or similar) is what you want.  ;-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to