hi,
sorry to relaunch this topie but I really need this to work. (o.o)'
how can I have an unicode pickled data ???
e.g.
a={'partition': u'/export/diskH1/home_evol/ricquebo',
'rsmFirstname': u'Fran\xe7ois',
'rsmLastname': u'Ricquebourg',
'size': u'8161222.0',
'size_max': '1'}
<(hint: rsmFirstna
> > 1-
> > this exemple will also works if you replace the:
> > super(C,self).__init__( *args, **kw)
> > by
> > dict.__init__(self, *args, **kw)
> >
> > but I do not understand this dict.__init_... call.
> > Shouldn't you call the super class constructor??
>
> super is just a convenience feature a
On Tue, 2005-04-05 at 11:33 -0700, Danny Yoo wrote:
>
> > > I have this dictionnary :
> > >
> > > a={'partition': u'/export/diskH1/home_evol/ricquebo',
> > > 'rsmFirstname': u'Fran\xe7ois',
> > > 'rsmLastname': u'Ricquebourg',
> > > 'size': u'8161222.0',
> > > 'size_max': '1'}
> > >
> > > and
hi,
I have this dictionnary :
a={'partition': u'/export/diskH1/home_evol/ricquebo',
'rsmFirstname': u'Fran\xe7ois',
'rsmLastname': u'Ricquebourg',
'size': u'8161222.0',
'size_max': '1'}
and I'd like to *serialize* it with pickle and that the output format
will be of type unicode.
unicode(pi
python-2.3 apache2
hi,
I'm trying to use unicode function into a cgi script with no success.
# cedric.py---
#!/usr/bin/python
import os,sys
import cgi
import cgitb; cgitb.enable()
print "Content-Type: text/html\
"+os.linesep+"\
"+os.linesep+"hipo'potame"
sys.stdout.flush()
content = u'c\xe