durusmail: quixote-users: Next Unicode baby step - specifying encoding in PTL function
First cut at Unicode support
2003-11-15
2003-11-16
2003-11-17
Next Unicode baby step - specifying encoding in PTL function
2003-11-17
Next Unicode baby step - specifying encoding in PTL function
Next Unicode baby step - specifying encoding in PTL function
2003-11-17
Next Unicode baby step - specifying encoding in PTL function
Mark Bucciarelli
2003-11-17
On Monday 17 November 2003 9:23 am, Skip Montanaro wrote:

> Do I have to call str() around any string I want to pass to a regular
> Python function

Yes, if it is a PTL function.  Or, you can have a call to an external fcn that
is not ptl.

For example, this would also work:

def setencoding(request):
        request.response.set_encoding("iso-8859-1")

def freddie2 [html] (request):
        ...
        setencoding()

That's just the way Quixote works.  :)

Regards,

Mark

reply