[Zope-dev] redirect burps on unicode URLs
Marius Gedminas
marius at gedmin.as
Mon Mar 1 03:18:21 EST 2010
On Sun, Feb 28, 2010 at 05:05:51PM +0100, Wichert Akkerman wrote:
> On 2010-2-26 18:25, Tres Seaver wrote:
> > Wichert Akkerman wrote:
> >> I see this as naming confusion. In this day and age every URL is
> >> effectively an IRI, and every modern browser treats them that way. If
> >> you look at http://jp.wikipedia.org/ you can see how well that works. I
> >> do not see why zope.publisher should not be able to support that
> >> transparently. Other systems such as Routes and repoze.bfg do.
> >
> > Browseers *display* what looks like unicode to the user, but they *pass*
> > URL-encoded ASCII bytes to the server.
>
> But why can't zope.publisher do that conversion? It don't see the point
> in requiring all the thousands of routines that call those functions to
> do that conversion when zope.publisher can easily do so itself.
+1
Just like zope.publisher converts Unicode strings returned by views into
UTF-8 (or whatever encoding negotiated via Accept-Charset),
response.redirect() ought to Do The Right Thing with Unicode URLs or
IRLs or whatever they're called.
Marius Gedminas
--
http://pov.lt/ -- Zope 3 consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20100301/d0d3790d/attachment.bin
More information about the Zope-Dev
mailing list