[ZODB-Dev] redirect burps on unicode URLs

2010-02-25 Thread Adam GROSZER
Hello,

Looks like zope.publisher burps on unicode URL which contain non-ascii
chars. This is from a KGS 3.4 application, but looking at the source
it still seems to have the same problems.

opinions?

...
self.request.response.redirect(url)
  File 
"d:\home\.buildout\eggs\zope.publisher-3.4.6-py2.5.egg\zope\publisher\browser.py",
 line
729, in redirect
return super(BrowserResponse, self).redirect(location, status)
  File 
"d:\home\.buildout\eggs\zope.publisher-3.4.6-py2.5.egg\zope\publisher\http.py", 
line 882,
in redirect
self.setHeader('Location', location)
  File 
"d:\home\.buildout\eggs\zope.publisher-3.4.6-py2.5.egg\zope\publisher\http.py", 
line 676,
in setHeader
value = str(value)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xd6' in position 
71: ordinal not in
range(128)

-- 
Best regards,
 Adam GROSZER  mailto:agros...@gmail.com
--
Quote of the day:
Exasperation is the mind's way of spinning its wheels until patience restores 
traction. 
- George L. Griggs 

___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] redirect burps on unicode URLs

2010-02-25 Thread Wichert Akkerman
wrong list I suspect? :)


On 2/25/10 14:56 , Adam GROSZER wrote:
> Hello,
>
> Looks like zope.publisher burps on unicode URL which contain non-ascii
> chars. This is from a KGS 3.4 application, but looking at the source
> it still seems to have the same problems.
>
> opinions?
>
> ...
>  self.request.response.redirect(url)
>File 
> "d:\home\.buildout\eggs\zope.publisher-3.4.6-py2.5.egg\zope\publisher\browser.py",
>  line
> 729, in redirect
>  return super(BrowserResponse, self).redirect(location, status)
>File 
> "d:\home\.buildout\eggs\zope.publisher-3.4.6-py2.5.egg\zope\publisher\http.py",
>  line 882,
> in redirect
>  self.setHeader('Location', location)
>File 
> "d:\home\.buildout\eggs\zope.publisher-3.4.6-py2.5.egg\zope\publisher\http.py",
>  line 676,
> in setHeader
>  value = str(value)
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xd6' in position 
> 71: ordinal not in
> range(128)
>

___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] redirect burps on unicode URLs

2010-02-25 Thread Adam GROSZER
Sorry, wrong list...

___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev