This arises when you try to access a url which has non-ascii in it
(but is well encoded), usually a document uploaded by a user.
Then the loginform comes with it's camefrom parameter.
On successful login yo uget redirected to the camefrom url, which gets
unencoded to unicode, that's where it burps (for me).
Do we want to fix this?
Which part is bogus? The loginform with it's redirect or the redirect
Friday, February 26, 2010, 9:29:54 AM, you wrote:
WA> On 2/25/10 17:08 , Tres Seaver wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> Adam GROSZER wrote:
>>> 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.
>>> 729, in redirect
>>> return super(BrowserResponse, self).redirect(location, status)
>>> line 882,
>>> in redirect
>>> self.setHeader('Location', location)
>>> line 676,
>>> in setHeader
>>> value = str(value)
>>> UnicodeEncodeError: 'ascii' codec can't encode character u'\xd6' in
>>> position 71: ordinal not in
>> Two issues:
>> - - Technically there is no such thing as a "unicode URL": URLs are
>> always ASCII, with other characters encoded. IRIs and IRLs are
>> a different thing altogether.
WA> I see this as naming confusion. In this day and age every URL is
WA> effectively an IRI, and every modern browser treats them that way. If
WA> you look at http://jp.wikipedia.org/ you can see how well that works. I
WA> do not see why zope.publisher should not be able to support that
WA> transparently. Other systems such as Routes and repoze.bfg do.
WA> Zope-Dev maillist - Zope-Dev@zope.org
WA> ** No cross posts or HTML encoding! **
WA> (Related lists -
WA> https://mail.zope.org/mailman/listinfo/zope )
Adam GROSZER mailto:agros...@gmail.com
Quote of the day:
Do not make friends who are comfortable to be with. Make friends who will force
you to lever yourself up.
- Thomas J. Watson, Sr.
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists -