Será que alguém sabe pq o plone dá esse erro, não aguento mais, toda vez que 
insere palavras acentuadas nos formulários ele dá erro.

Alguém pode me ajudar.

 

 

Valor do Erro

'ascii' codec can't decode byte 0xc3 in position 13: ordinal not in range(128)

 

 

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.FSControllerPageTemplate, line 90, in 
__call__
*       Module Products.CMFFormController.BaseControllerPageTemplate, line 26, 
in _call
*       Module Products.CMFFormController.FormController, line 376, in validate
*       Module ZPublisher.mapply, line 88, in mapply
*       Module ZPublisher.Publish, line 41, in call_object
*       Module Products.CMFFormController.FSControllerValidator, line 58, 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 2, in fgvalidate_base
        <FSControllerValidator at /website/fgvalidate_base used for / website 
/fale_conosco/fale-conosco>
        Line 2
*       Module Products.PloneFormGen.content.form, line 462, in fgvalidate
*       Module Products.PloneFormGen.content.formMailerAdapter, line 458, in 
onSuccess
*       Module Products.PloneFormGen.content.formMailerAdapter, line 752, in 
send_form
*       Module Products.PloneFormGen.content.formMailerAdapter, line 530, in 
get_mail_text
*       Module Products.PloneFormGen.content.formMailerAdapter, line 663, in 
get_header_body_tuple
*       Module Products.PloneFormGen.content.formMailerAdapter, line 623, in 
get_mail_body
*       Module Products.TemplateFields._field, line 100, in get
*       Module Products.CacheSetup.patch_cmf, line 116, in PT_pt_render
        <ZopePageTemplate at / website 
/fale_conosco/fale-conosco/mailer/body_pt>
*       Module TAL.TALInterpreter, line 238, in __call__
*       Module TAL.TALInterpreter, line 281, in interpret
*       Module TAL.TALInterpreter, line 691, in do_loop_tal
*       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 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 715, in do_condition
*       Module TAL.TALInterpreter, line 281, in interpret
*       Module TAL.TALInterpreter, line 531, in do_insertText_tal
*       Module Products.PageTemplates.TALES, line 227, in evaluateText
*       Module Products.PageTemplates.TALES, line 221, in evaluate
        URL: / website /fale_conosco/fale-conosco/mailer/body_pt
        Line 11, Column 78
        Expression: <PythonExpr valor.encode('utf-8')>
        Names:

 

 

 

 

 

Atenciosamente,

 

Cristina  Tolentino

   Analista de Sistemas Web

 

 

 

 

 

Responder a