[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