[Zope3-dev] Make AbsoluteURL produce quoted urls

Bjorn Tillenius bjoti777 at student.liu.se
Mon May 31 17:59:12 EDT 2004


On Mon, May 31, 2004 at 08:48:57AM -0400, Stephan Richter wrote:
> On Saturday 29 May 2004 14:03, Bjorn Tillenius wrote:
> > The only use case I have for AbsoluteURL is that I want to create
> > urls to embed into HTML pages. Therefore, I would like to make it
> > unicode capable and make it quote the url before it gets returned.
> > Right now it can only handle ascii names, which is really bad since
> > we allow names to be unicode.
> >
> > Any objections?
> 
> Another bug that I think you have every right of fixing. :-) Basically, you 
> are saying that AbsoluteURL should return unicode instead of ASCII strings, 
> right? If so, go ahead and make the necessary changes.

No, it should still return ASCII strings. It should encode the name to
utf-8 and the quote it (thus producing urls containing %xx:s). Actually,
now I'm sure that's the right thing to do, I will fix it tomorrow.

Regards,
  Bjorn



More information about the Zope3-dev mailing list