[Zope] Expressions with strings with double-quotations?

Dave Parker dparker@globalcrossing.com
Tue, 21 Dec 1999 09:11:31 -0600


Martijn Pieters wrote:
> 
> Tuesday, December 21, 1999, 3:34:29 PM, Michel Pelletier wrote:
> >> This is (theoretically) as in <dtml-var "'hello \" world'"> -
> >> whenever I
> >> try anything like this Zope misses the escape and terminates the
> >> expression (colorfully)...
> 
> MP> This can't be done; You can't get there from here.
> 
> Ahem. You can, just use the \xhh.. where hh.. is the hex code of the
> character, or use \ooo where ooo is the octal code of the character in
> question. See the Python Language Reference:
> 
>   http://www.python.org/doc/current/ref/strings.html
> 
> In this case, use \x22 or \042:
> 
>   <dtml-var "'hello \x22 world'">

Thanks! I am saved :)