Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DSpace Import plugin does not handle utf8 characters as expected. #326

Closed
mamalos opened this issue Jun 18, 2015 · 0 comments
Closed

DSpace Import plugin does not handle utf8 characters as expected. #326

mamalos opened this issue Jun 18, 2015 · 0 comments

Comments

@mamalos
Copy link

@mamalos mamalos commented Jun 18, 2015

When trying to import a record from a Greek repository (eg. https://dspace.lib.uom.gr/handle/2159/323), although the record seems to be imported OK, in all text fields, the characters are not display correctly (nor in the database). Once the following patch was applied (proposed by Timothy Miles-Board in the EP-tech list), the content was imported correctly in the database.

Proposed patch:

--- a/perl_lib/EPrints/Plugin/Import/DSpace.pm
+++ b/perl_lib/EPrints/Plugin/Import/DSpace.pm
@@ -235,7 +235,7 @@ sub retrieve_dcq
                return undef;
        }
 
-       my $dc = $self->find_dc_pairs( $r->content );
+       my $dc = $self->find_dc_pairs( $r->decoded_content );
        return undef unless defined $dc;
 
        $self->{errurl} = $self->{errmsg} = undef;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants