pylons, unicode and german umlauts in urls

2008-04-29 Thread Saibot
Hi, I have already reached a dead end, although I am still at the beginning of my project. Perhaps somebody can help me out of this mess: I am trying to write a tool to browse data in databases. Unfortunately the database I am working with is a ms-sql database which has german umlauts in its

Re: pylons, unicode and german umlauts in urls

2008-04-29 Thread Dalius Dobravolskas
Hi, Saibot wrote: v = quote_plus(str(v)) UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in position 6: ordinal not in range(128) Can anybody explain me what I am doing wrong? Wrong encoding. \xdf is from cp125x or similar encoding. Try following: v.decode('cp1250') or

Re: pylons, unicode and german umlauts in urls

2008-04-29 Thread Kumar McMillan
On Tue, Apr 29, 2008 at 1:56 AM, Saibot [EMAIL PROTECTED] wrote: Hi, I have already reached a dead end, although I am still at the beginning of my project. Perhaps somebody can help me out of this mess: I am trying to write a tool to browse data in databases. Unfortunately the

Re: pylons, unicode and german umlauts in urls

2008-04-29 Thread Saibot
Sorry for bothering you with this crap. I have just upgraded to routes 1.8 and everything works fine now. Thank you none the less. On 29 Apr., 08:56, Saibot [EMAIL PROTECTED] wrote: Hi, I have already reached a dead end, although I am still at the beginning of my project. Perhaps somebody

Re: pylons, unicode and german umlauts in urls

2008-04-29 Thread Saibot
After upgrading to routes 1.8, everything works as it should! Thank you! On 29 Apr., 11:26, Dalius Dobravolskas [EMAIL PROTECTED] wrote: Hi, Saibot wrote:   v = quote_plus(str(v)) UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in position 6: ordinal not in range(128)

Re: pylons, unicode and german umlauts in urls

2008-04-29 Thread Ben Bangert
On Apr 29, 2008, at 6:55 AM, Saibot wrote: After upgrading to routes 1.8, everything works as it should! Thank you! Also note that the mapper (defined in routing.py) can have its encoding set should you not be using the 'utf-8' charset that it defaults to. map.encoding = 'cp1250' Will