Ticket #3665 (closed defect: invalid)

Opened 4 years ago

Last modified 3 years ago

utf8 double-encoding on RSS2 exportview

Reported by: sf03r@… Owned by:
Priority: Would be nice Milestone: 3.2.5
Component: Export Version:
Severity: normal Keywords:
Cc:

Description

From a french repository using accents: when exporting views to RSS2 (via cgi/exportview), citations contain double-encoded utf8 characters. It's a bit odd as it's only the citations (the titles display fine). According to TimB, this could be due to how perl handle string-concatenations with mixed string formats. Anyways, the fix is as below:

perl_lib/EPrints/Plugin/Export/RSS2.pm:113

# replace citation rendering with:

my $citation = $eprint->render_citation; $citation = EPrints::Utils::tree_to_utf8( $citation ); utf8::decode( $citation ); $item->appendChild( $session->render_data_element(

2, "description", $citation ) );

Change History

Changed 4 years ago by cjg

  • milestone changed from EPrints 3.2.x (general bugs/features for 3.2) to EPrints 3.2.2

Changed 3 years ago by sf03r@…

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

fixed in r5944

Changed 3 years ago by sf03r@…

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 3 years ago by sf03r@…

  • status changed from reopened to closed
  • resolution set to invalid

This fix was meant for 3.1.x not 3.2.x. On 3.2 it causes display problems on feeds.

-> rollback in r6204

Note: See TracTickets for help on using tickets.