[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/apidoc/utilitymodule/ Fixed utility module to work well with any type of utility name.

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Oct 29 11:52:54 EDT 2005


On Saturday 29 October 2005 11:39, Bjorn Tillenius wrote:
> Can you give an example of a browser that does this? I'd like to try it
> out for myself, to see what's wrong. If this indeed is the case, it's a
> major browser bug, and should be fixed.

Konqueror.

> BTW, urllib.quote_plus() should be used only for quoting strings that
> are to be included in the query part of the URL, not in the path part.

Yeah, but quote(), as Tarek pointed out, does not encode all characters as 
required in this case.

> > > I haven't looked into the problem you're trying to solve, though, so
> > > maybe I'm missing something. Just wanted to raise a possible issue. And
> > > I dislike cryptic URLs. ;)
> >
> > I hate them too! Very much! If I can get a better solution, please let me
> > know. Basically, I have random unicode strings and need to make a
> > URL-safe representation.
>
> The standard way is to encode the string using utf-8, and then url quote
> it. If that doesn't work in some browser, I think those browsers should
> be fixed. All names in Zope3 are by default allowed to be practically
> any unicode string and can appear in a URL, so this problem isn't local
> to apidoc's utility module.

Theoretically this sounds nice, but doe not hold in reality. Konqui is 
important to *me*, so only solutions that are working with this browser are 
acceptable to me.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-Checkins mailing list