Forum OpenACS Q&A: ns_urlencode

Collapse
Posted by Jonathan Ellis on
ns_urlencode converts both "+" and " " to "+". This is problematic:
> puts ":[ns_urldecode [ns_urlencode "+ "]]:"
:  :
I'd be surprised if I'm the first to run into this but google doesn't search for plus symbols well. Is there a standard workaround?
Collapse
2: Re: ns_urlencode (response to 1)
Posted by Jeff Davis on
There is a related bug at sourceforge 972994. As this is an aolserver issue you should either point it out as a comment there or submit a new bug there.
Collapse
3: Re: ns_urlencode (response to 1)
Posted by Jonathan Ellis on
Thanks.  From what I see there, my specific issue is already fixed in recent nsd versions.  I'm not itching to upgrade ATM so I'll just hack a "fixed" ns_urlencode in tcl.