[Zope] SV: [Zope] urlquote?

2000-06-30 Thread Magnus Heino (Rivermen)


 in module 'urllib'
 
 quote (string[, safe])
 Replace special characters in string using the "%xx" escape. 

Doesn't work like that here.

 import urllib
 urllib.quote('lösning')
'l\366sning'


Am I doing anything wrong? :-P

/Magnus

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] SV: [Zope] urlquote?

2000-06-30 Thread Erik Enge

On Fri, 30 Jun 2000, Magnus Heino (Rivermen) wrote:

 Am I doing anything wrong? :-P

Are you using this within Zope?  Then you could do:

dtml-var the_variable url_quote

If I'm not mistaken, Zope also has sql_quote and html_quote.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )