Clodoaldo
clodoaldo.pinto.neto at gmail.com
Fri Aug 3 12:28:45 EDT 2007
2007/8/3, S.R.Pardá <linux at qbox.es>: > Hi, > > I have problems in a *.psp page, where I have code like : > > > File xx.psp: > > <% > table = Table() > table.select('tipo','3AÑOS') > %> > > > > > File tables.py: > > # -*- coding: utf-8 -*- > > ... > > class Table: > ... > def select(self, column, value): > ... > lowerValue = str(value).lower() Try like this: lowerValue = str(value).decode('utf8').lower().encode('utf8') Clodoaldo Pinto Neto
|