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

[EP-tech] international character search problem #13

Closed
timbrody opened this issue Jan 17, 2013 · 0 comments
Closed

[EP-tech] international character search problem #13

timbrody opened this issue Jan 17, 2013 · 0 comments
Assignees
Labels
Milestone

Comments

@timbrody
Copy link
Contributor

@timbrody timbrody commented Jan 17, 2013

I may have found a bug in EPrints 3.3.10. One of the authors in our repository is Anıl Zenginoğlu (if the name doesn't come out right in email, his homepage is http://www.tapir.caltech.edu/~anil/). Searching for the surname works fine with the simple search, but with the advanced search we don't get any results. I believe the problem is with line 230 in perl_lib/EPrints/MetaField/Name.pm:

remove not a-z characters (except ,)

$v2 =~ s/[^a-z,]/ /ig;

That code splits up "zenginoğlu" to "zengino lu". A possible solution may be

use utf8;

$v2 =~ s/[^\p{L},]/ /ig;

Maybe someone with a strong encodings-fu can comment?

tommy

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

Successfully merging a pull request may close this issue.

None yet
1 participant