[Zope-dev] Non-ASCII characters in URLs

Andreas Jung lists at zopyx.com
Mon Apr 7 00:24:40 EDT 2008



--On 6. April 2008 16:37:22 -0700 Alexander Limi <limi at plone.org> wrote:

> Hi,
>
> Is there a good technical explanation for why Zope doesn't allow
> non-ASCII characters in URLs?
>
> I'd like to be able to let URLs work like this example from Wikipedia:
>
> http://ja.wikipedia.org/wiki/メインページ
>
> When I try adding an object with ID "メインページ" in Zope 2, I get
> the following error message:
>
> Error Type: BadRequest
> Error Value: The id
> "&amp;#12513;&amp;#12452;&amp;#12531;&amp;#12506;&amp;#12540;&amp;#12472;
> " contains characters illegal in URLs.
>
> Is there a fundamental reason (ie. Python objects can only be ASCII) or
> is it simply bugs that need to be fixed?
>

As Paul indicated: the issue dates back to the times when there was only
ASCII in the URL world. Especially object IDs have to be ascii - well...Zope
came from US :-)

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20080407/e0c9d073/attachment.bin


More information about the Zope-Dev mailing list