From: erickson Date: Mon, 26 Jan 2009 19:05:53 +0000 (+0000) Subject: we've seen sip clients in the field that do not handle unicode very well. until... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ca8cedccb0203f707983ef4a313bd7f2c7fa612c;p=Evergreen.git we've seen sip clients in the field that do not handle unicode very well. until we track down the problem, strip the 'wide characters' from the title string git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@11977 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/SIP/Item.pm b/Open-ILS/src/perlmods/OpenILS/SIP/Item.pm index 3e3f7b9793..2b60b57c83 100644 --- a/Open-ILS/src/perlmods/OpenILS/SIP/Item.pm +++ b/Open-ILS/src/perlmods/OpenILS/SIP/Item.pm @@ -146,7 +146,9 @@ sub id { sub title_id { my $self = shift; - return ($self->{mods}) ? $self->{mods}->title : $self->{copy}->dummy_title; + my $t = ($self->{mods}) ? $self->{mods}->title : $self->{copy}->dummy_title; + $t =~ s/\pM+//og; + return $t; } sub permanent_location {