Modify

Ticket #165 (closed task: fixed)

Opened 6 years ago

Last modified 5 years ago

addtoFavorites: UnicodeEncodeError

Reported by: denis Owned by: andycat
Priority: minor Milestone: 4.1
Component: SiteTools Severity:
Keywords: Cc:
Who will test this:

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

comment:1 Changed 6 years 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

comment:2 Changed 6 years 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")

comment:3 Changed 6 years ago by and

  • Milestone set to 0.4

comment:4 Changed 5 years ago by andycat

  • Status changed from new to closed
  • Resolution set to fixed

Denis said its fixed ? I think i can close it then.

Re-open it if im wrong.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.