URL ENCODING - SYNTAX
URL ENCODING SYNTAX Does Zope provide a function for URL-Encoding a ZOPE variable within a DTML Document? Specifically this type of URL ENCODING: standard MIME format application/x-www-urlformencoded As if that helps! Thanks in advance as always! Theodore E. Patrick Ishophere.com
Does Zope provide a function for URL-Encoding a ZOPE variable within a DTML Document?
You can use <dtml-var fmt=url-quote> and <dtml-var fmt=url-quote-plus> although the source indicates that they have been deprecated. -jfarr
Jonothan Farr wrote:
Does Zope provide a function for URL-Encoding a ZOPE variable within a DTML Document?
You can use <dtml-var fmt=url-quote> and <dtml-var fmt=url-quote-plus> although the source indicates that they have been deprecated.
AFAIK, that should be url_quote, and url_quote_plus. -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900
Jonothan Farr wrote:
AFAIK, that should be url_quote, and url_quote_plus.
I tested url-quote and url-quote-plus with version 2.1.4 and they worked fine. Maybe this has since changed. -jfarr
Maybe they changed to support that in 2.1.4? I swear I originally tried that (back with 2.1.[2|3]) and it failed, leading to me learning to use the underscores. The underscores work as well, btw. :) So, DC ... what's the deal with these? :) -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900
participants (3)
-
Bill Anderson -
Jonothan Farr -
Theodore Patrick