Re: unicode question

2011-03-29 Thread George Lund
I can't explain the additional space, but URL-encoding a Unicode string isn't generally possible, it needs to be encoded first. UTF-8 is almost always the correct encoding to use, so in your case: qk = quote(query_text.encode('utf8')) Anything you can do to avoid having to include text like th

Re: Unicode question

2007-08-21 Thread Malcolm Tredinnick
On Mon, 2007-08-20 at 17:27 +, arthur debert wrote: > Hi Rob. > > After the unicode branch merge django expects and produces unicodes > objects throughout. > > A detail how to port guide is here: > http://code.djangoproject.com/wiki/UnicodeBranch#PortingApplicationsTheQuickChecklist > > In

Re: Unicode question

2007-08-20 Thread arthur debert
Hi Rob. After the unicode branch merge django expects and produces unicodes objects throughout. A detail how to port guide is here: http://code.djangoproject.com/wiki/UnicodeBranch#PortingApplicationsTheQuickChecklist In this specific case, you can call "lower" directly on your unicode object: