Re: german umlaute on search querys

2009-11-29 Thread Hinnack
Hi Karen, thanks for investigating... I solved the problem. There were 2 reasons: - php code non passing correct encoded POST - urllib.unquote_plus not working as expected and not for last that the raw_post_data is not decoded and a POST var is... (my blindness) Thanks again for your help. -- H

Re: german umlaute on search querys

2009-11-26 Thread Karen Tracey
On Thu, Nov 26, 2009 at 7:03 AM, Hinnack wrote: > Hi Karen, > > thanks again for your reply. > I use Aptana with pydev extension. > Debugging the app shows the following for search: > dict: {u'caption': u'f\\xfcr', u'showold': False} > > That's confusing to me, because other than having an extra \

Re: german umlaute on search querys

2009-11-26 Thread Hinnack
Hi Karen, thanks again for your reply. I use Aptana with pydev extension. Debugging the app shows the following for search: dict: {u'caption': u'f\\xfcr', u'showold': False} and for qs: str: für although it seems to be � instead of ASCII 252 - but this could be, because I am sitting on a MAC whil

Re: german umlaute on search querys

2009-11-25 Thread Karen Tracey
On Wed, Nov 25, 2009 at 1:54 AM, Hinnack wrote: > Hi Karen, > > thanks for your reply > > it means so far I must do a: > qs = search[query].encode('iso-8859-1') > > before I add the qs to a Q object of a queryset. Only in this case I get > results. > > the full codepart looks like: > > decoder = s

Re: german umlaute on search querys

2009-11-24 Thread Hinnack
Hi Karen, thanks for your reply it means so far I must do a: qs = search[query].encode('iso-8859-1') before I add the qs to a Q object of a queryset. Only in this case I get results. the full codepart looks like: decoder = simplejson.JSONDecoder() search = decoder.decode(request.POST['search']

Re: german umlaute on search querys

2009-11-24 Thread Karen Tracey
On Tue, Nov 24, 2009 at 5:57 AM, Hinnack wrote: > Hi, > > I have django 1.1 and a mysql database created in utf-8. > My tables are also utf8 as the collation is, too. > > Showing data in a view works pretty well with german umlaute, but doing > a search with filter and icontains always returns an

german umlaute on search querys

2009-11-24 Thread Hinnack
Hi, I have django 1.1 and a mysql database created in utf-8. My tables are also utf8 as the collation is, too. Showing data in a view works pretty well with german umlaute, but doing a search with filter and icontains always returns an empty queryset... if I convert the search back to iso-8859 I