Dear Readers, Environment:
CPS 3.4.6 CPS-RSS 1.0.0-1 Zope 2.9.8 Python 2.4.5 Issue: When I try to create a site configuration snapshot using the CPS portal Setup Tool the RSS Tool causes UnicodeEncodeErrors, e.g.: Traceback (innermost last): Module ZPublisher.Publish, line 115, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 41, in call_object Module Products.GenericSetup.tool, line 568, in manage_createSnapshot Module Products.GenericSetup.tool, line 285, in createSnapshot Module Products.CPSRSS.exportimport, line 60, in exportRSSTool Module Products.GenericSetup.utils, line 736, in exportObjects Module Products.GenericSetup.utils, line 732, in exportObjects Module Products.GenericSetup.context, line 452, in writeDataFile Module Products.GenericSetup.context, line 478, in _createObjectByType UnicodeEncodeError: 'ascii' codec can't encode character u'\xae' in position 118: ordinal not in range(128) The error seems to be caused by unicode characters occurring in the parsed feeds, e.g., in the example above, the `Registered' character in: Title: Project MUSEĀ®: Asian Theatre Journal - Latest Issues Description: Project MUSEĀ®: Latest issues of Asian Theatre Journal. from the feed: http://feeds.muse.jhu.edu/journals/asian_theatre_journal/latest_issues.xml This error occurs when `zope.conf' contains the default encoding values and also the following: rest-input-encoding utf-8 rest-output-encoding utf-8 default-zpublisher-encoding utf-8 If I remove all of the RSS channels in the RSS Tool the errors disappear and I am able to take a system snapshot as usual. Has the system failed to set `sys.setdefaultencoding("utf-8")' or some such at some point here? Any hints would be much appreciated. Best regards, Richard -- Richard MAHONEY | internet: http://indica-et-buddhica.org/ Littledene | telephone/telefax (man.): +64 3 312 1699 Bay Road | cellular: +64 27 482 9986 OXFORD, NZ | email: [EMAIL PROTECTED] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Indica et Buddhica: Materials for Indology and Buddhology Scholia: http://scholia.indica-et-buddhica.org/ Tabulae: http://tabulae.indica-et-buddhica.org/ _______________________________________________ cps-users mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/cps-users
