Ticket #3665 (closed defect: invalid)
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 ) );
