Re: solr.py problems with german "Umlaute"

2007-09-06 Thread Mike Klaas
On 6-Sep-07, at 12:13 PM, Yonik Seeley wrote: On 9/6/07, Brian Carmalt <[EMAIL PROTECTED]> wrote: Try it with title.encode('utf-8'). As in: kw = {'id':'12','title':title.encode ('utf-8'),'system':'plone','url':'http://www.google.de'} It seems like the client library should be responsible fo

Re: solr.py problems with german "Umlaute"

2007-09-06 Thread Yonik Seeley
On 9/6/07, Brian Carmalt <[EMAIL PROTECTED]> wrote: > Try it with title.encode('utf-8'). > As in: kw = > {'id':'12','title':title.encode('utf-8'),'system':'plone','url':'http://www.google.de'} It seems like the client library should be responsible for encoding, not the user. So try changing title=

RE: solr.py problems with german "Umlaute"

2007-09-06 Thread Lance Norskog
I researched this problem before. The problem I found is that Python strings are not Unicode by default. You have to do something to make them Unicode. Here are the links I found: http://www.reportlab.com/i18n/python_unicode_tutorial.html http://evanjones.ca/python-utf8.html http://jjinux.blog

Re: solr.py problems with german "Umlaute"

2007-09-06 Thread Brian Carmalt
Hallo Christian, Try it with title.encode('utf-8'). As in: kw = {'id':'12','title':title.encode('utf-8'),'system':'plone','url':'http://www.google.de'} Christian Klinger schrieb: Hi all, i try to add/update documents with the python solr.py api. Everything works fine so far but if i try to