@@ -, +, @@ compared with utf-8 strings from database every field with utf-8 characters will be reported in e-mail as changed which results in software error if edited field has utf-8 characters (because of first point, this happend if ANY fields has utf-8 chars) than just utf8 at least one field (firstname and surname are common examples) --- opac/opac-userupdate.pl | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) --- a/opac/opac-userupdate.pl +++ a/opac/opac-userupdate.pl @@ -22,6 +22,7 @@ use warnings; use CGI; use Mail::Sendmail; +use Encode; use C4::Auth; # checkauth, getborrowernumber. use C4::Context; @@ -102,7 +103,7 @@ EOF my $B_address2 = $borr->{'B_address2'} || ''; foreach my $field (@fields) { - my $newfield = $query->param($field) || ''; + my $newfield = decode('utf-8',$query->param($field)) || ''; my $borrowerfield = ''; if($borr->{$field}) { $borrowerfield = $borr->{$field}; @@ -124,8 +125,8 @@ EOF To => $updateemailaddress, From => $patronemail, Subject => "User Request for update of Record.", - Message => $message, - 'Content-Type' => 'text/plain; charset="utf8"', + Message => encode('utf-8', $message), # Mail::Sendmail doesn't like wide characters + 'Content-Type' => 'text/plain; charset="utf-8"', ); if ( sendmail %mail ) { --