[SVN] r5437 (HTML)
James Edward Gray II
james at grayproductions.net
Thu Oct 12 03:04:14 UTC 2006
On Oct 12, 2006, at 1:37 AM, Allan Odgaard wrote:
> • switch to custom URL escaping since Ruby’s escapes spaces with a
> plus character and not everything understands that.
$ ruby -r cgi -e 'p CGI.escape("a space")'
"a+space"
$ ruby -r erb -e 'include ERB::Util; p url_encode("a space")'
"a%20space"
Just make sure you use ERB exactly as I showed. Tiger's default ruby
has trouble if you skip the include statement and try
ERB::Util.url_encode(..).
James Edward Gray II
More information about the textmate-dev
mailing list