Ticket #165 (new task)

Opened 7 weeks ago

Last modified 6 weeks ago

addtoFavorites: UnicodeEncodeError

Reported by: denis Owned by: andycat
Priority: minor Milestone: 0.4
Component: SiteTools Version:
Keywords: Cc:

Description

I have an error when i click to add to Favorites, http://plumi.domainepublic.net:8080/test/Members/Plumi/videos/ext.avi/addtoFavorites

Type de l'erreur
    UnicodeEncodeError
Valeur de l'erreur
    'ascii' codec can't encode character u'\xe9' in position 105: ordinal not in range(128)

The log inside Plone-2.5.5/zeocluster/client1/log/event.log

2008-07-01T12:45:25 ERROR Zope.SiteErrorLog http://plumi.domainepublic.net:8080/test/Members/Plumi/videos/ext.avi/addtoFavorites
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.CMFFormController.FSControllerPythonScript, line 104, in __call__
  Module Products.CMFFormController.Script, line 145, in __call__
  Module Products.CMFCore.FSPythonScript, line 108, in __call__
  Module Shared.DC.Scripts.Bindings, line 311, in __call__
  Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  Module Products.CMFCore.FSPythonScript, line 164, in _exec
  Module None, line 36, in addtoFavorites
   - <FSControllerPythonScript at /test/addtoFavorites used for /test/Members/Plumi/videos/ext.avi>
   - Line 36
  Module ZPublisher.HTTPResponse, line 594, in redirect
  Module ZPublisher.HTTPResponse, line 253, in setHeader
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 105: ordinal not in range(128)

Attachments

Change History

Changed 7 weeks ago by datakid

Hi dennis,

This is an issue with CMFFormController. There are a couple of ways to fix this issue mentioned in this thread:

http://www.nabble.com/Unicode-Error-to9495788.html

cheers

Changed 7 weeks ago by denis

Fixed with the add of this file:

/opt/Plone-2.5.5/Python-2.4.4/lib/python2.4/site-packages/sitecustomize.py

import sys
sys.setdefaultencoding("utf-8")

Changed 6 weeks ago by and

  • milestone set to 0.4

Add/Change #165 (addtoFavorites: UnicodeEncodeError)

Author



Action
as new
 
Note: See TracTickets for help on using tickets.