"isthar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi ! > i am trying to serialise object which contains some unicode objects > but looks like there is no way to do it. >
hi, I'm sure you'll get better answers for the unicode part of your problem (I'd start with a look at the codecs module), but I wanted you to know that I'm using the wddx connection between Python and PHP with no problem. Here's the python code that writes a fairly complex data structure to the wddx file: def writeDocReport(self): from xml.marshal import wddx fileName = '%s/%s.doc.wddx' % (os.path.join(adsWeb,'jobs','wddx'), self.name) tmpFile = open(fileName,'wb') tmpFile.write(wddx.dumps(self.getDocData())) tmpFile.close() and the PHP: function getInputData($){ $file = "wddx/$prodName.wddx"; if (!is_file($file)) { exit("<h1>Report is not available for $prodName</h1>"); } $output = wddx_deserialize(file_get_contents($file)); -- http://mail.python.org/mailman/listinfo/python-list