Re: UnicodeEncodeError - opening encoded URLs

2009-03-28 Thread Peter Otten
D4rko wrote: >> (Unless "name" is a unicode object as well.) > > Unfortunately it is, it's the argument that is automagically handed to > the handler function by the Django URL dispatcher. I guess I may need > to encode it back to the pure ascii with the "%xx" things, but I can't > find the funct

Re: UnicodeEncodeError - opening encoded URLs

2009-03-27 Thread D4rko
> (Unless "name" is a unicode object as well.) Unfortunately it is, it's the argument that is automagically handed to the handler function by the Django URL dispatcher. I guess I may need to encode it back to the pure ascii with the "%xx" things, but I can't find the function that would do it. Any

Re: UnicodeEncodeError - opening encoded URLs

2009-03-27 Thread Matt Nordhoff
D4rko wrote: > Hi! > > I have a problem with urllib2 open() function. My application is > receiving the following request - as I can see in the developement > server console it is properly encoded: > > [27/Mar/2009 22:22:29] "GET /[blahblah]/Europa_%C5%9Arodkowa/5 HTTP/ > 1.1" 500 54572 > > Then