Ticket #1775 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

RSS Portlet fails with weird characters

Reported by: gracinet Assigned to: jmorliaguet
Priority: P2 Milestone: CPS 3.4.3
Component: CPSPortlets Version: TRUNK
Severity: normal Keywords:
Cc:

Description

End of TB:

    * Module Products.PageTemplates.PageTemplate, line 104, in pt_render
      <FSPageTemplate at /cps/cpsportlet_rssitem_display used for /cps/portal_layouts/rss_portlet/w__portlet>
    * Module TAL.TALInterpreter, line 238, in __call__
    (...)
    * Module TAL.TALInterpreter, line 542, in do_insertText_tal
    * Module Products.Localizer, line 148, in write
    * Module ZPublisher.HTTPResponse, line 453, in _encode_unicode
    * Module encodings.iso8859_15, line 18, in encode

UnicodeEncodeError: 'charmap' codec can't encode character u'\u2022' in position 245: character maps to <undefined>

Should use CPSUtils' latin9_fallback in encoding. For the record, u'\u2022' is a bullet. Comes from a major french newspaper feed.

Change History

11/09/06 18:51:51 changed by gracinet

  • status changed from new to closed.
  • resolution set to fixed.

Done in [49956] Also this character has been added to latin9_fallback [49958]