Consegui resolver os problemas em parte.

 

Editei meu arquivo do Python 
/usr/local/lib/python2.3/site-packages/sitecustomize.py com as linhas:

import sys

       reload(sys)

             sys.setdefaultencoding("utf-8")

 

Como uso o Zeo fui em /opt/Plone-2.5.4/zeocluster/client1/etc/zope.conf e 
adicionei as linhas:

rest-input-encoding utf-8

rest-output-encoding utf-8

 

depois em /opt/Plone-2.5.4/zeocluster/client2/etc/zope.conf e também adicionei 
as linahs:

rest-input-encoding utf-8

rest-output-encoding utf-8

 

Até aí tudo bem, consegui tirar o erro dos formulário, posso preenche-lo com 
palavras acentuada e ele não dá mais erro.

Porém o busca do meu site continua com o erro:

___________________________


Site Error


An error was encountered while publishing this resource. 

UnicodeDecodeError

Sorry, a site error occurred.

Traceback (innermost last): 

*       Module ZPublisher.Publish, line 196, in publish_module_standard
*       Module Products.PlacelessTranslationService.PatchStringIO, line 34, in 
new_publish
*       Module ZPublisher.Publish, line 146, in publish
*       Module Zope2.App.startup, line 222, in zpublisher_exception_hook
*       Module ZPublisher.Publish, line 115, in publish
*       Module ZPublisher.mapply, line 88, in mapply
*       Module ZPublisher.Publish, line 41, in call_object
*       Module Shared.DC.Scripts.Bindings, line 311, in __call__
*       Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
*       Module Products.CMFCore.FSPageTemplate, line 195, in _exec
*       Module Products.CacheSetup.patch_cmf, line 50, in FSPT_pt_render
*       Module Products.CacheSetup.patch_cmf, line 116, in PT_pt_render
        <FSPageTemplate at /arquivar/search>
*       Module TAL.TALInterpreter, line 238, in __call__
*       Module TAL.TALInterpreter, line 281, in interpret
*       Module TAL.TALInterpreter, line 749, in do_useMacro
*       Module TAL.TALInterpreter, line 281, in interpret
*       Module TAL.TALInterpreter, line 457, in do_optTag_tal
*       Module TAL.TALInterpreter, line 442, in do_optTag
*       Module TAL.TALInterpreter, line 437, in no_tag
*       Module TAL.TALInterpreter, line 281, in interpret
*       Module TAL.TALInterpreter, line 749, in do_useMacro
*       Module TAL.TALInterpreter, line 281, in interpret
*       Module TAL.TALInterpreter, line 310, in do_startEndTag
*       Module TAL.TALInterpreter, line 356, in do_startTag

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 14: 
ordinal not in range(128) (Also, the following error occurred while attempting 
to render the standard error message, please see the event log for full 
details: 'ascii' codec can't decode byte 0xc3 in position 14: ordinal not in 
range(128))

________________________________

 

Onde eu corrijo o erro do busca? Alguém pode me ajudar?

Obrigada!

 

 

 

Atenciosamente,

 

Cristina  Tolentino

   Analista de Sistemas Web

 

 

 

 

Responder a