[Koha-bugs] [Bug 17842] Broken diacritics on records exported as MARC from cart

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 2 02:03:23 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17842

--- Comment #47 from David Cook <dcook at prosentient.com.au> ---
(In reply to Jonathan Druart from comment #46)
> I think the whole block could be:
> 
> $output .= encode("UTF-8", $record->as_usmarc()) // q{};
> 
> From Encode::encode POD:
>   "If the $string is undef, then undef is returned."

Personally, I don't like putting method output directly into another function
call, as it can make exception handling harder. 

But your suggestion does look more elegant and would be less code to maintain. 

I'd be happy with either.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list