[Zope] French language problems

Peter Bengtsson mail@peterbe.com
Fri, 11 May 2001 16:43:29 +0200


I want to "filter" the user input a bit.
If somebody submits name="", in the end I want: name="eea"

So I tried this:

<pseudo atr="filling in the input name=''">
print self.REQUEST['name'], ''
print self.REQUEST['name'] == ''
</pseudo>

This returns
'\303\251', ''
0

Basically, how do I compare self.REQUEST['name'] with '' and get true?
(assuming the name variable is set to "". (you understand what I mean)

Any hints of the right approach?



Peter