Re: Non ASCII URL characters in Django

2009-07-27 Thread Shivaraj
27;\\u').decode('unicode_escape') This potentially gave me a unicode string which I tried to unicode again which was giving me an error. Thanks for pointing this out. On Jul 27, 4:26 pm, Russell Keith-Magee wrote: > On Mon, Jul 27, 2009 at 3:26 PM, Shivaraj wrote: > > > L

Re: Non ASCII URL characters in Django

2009-07-27 Thread Shivaraj
. Try unicode('район','utf-8') from any view function and it will throw a TypeError stating decoding is not permitted or so. On Jul 27, 4:55 am, Russell Keith-Magee wrote: > On Sun, Jul 26, 2009 at 9:42 PM, Shivaraj wrote: > > > Django doesn't allow url

Non ASCII URL characters in Django

2009-07-26 Thread Shivaraj
Django doesn't allow urlecode or urlopen when there is a non-ASCII/ international characters in the url. http://www.djangosnippets.org/snippets/1048/ which uses text.encode ('utf-8') helped. Reported this in http://code.djangoproject.com/ticket/2078 . Just wanted to know if this can be included