[Koha-bugs] [Bug 31351] Worker dies on reindex job when operator last name/first name/branch name contains non-ASCII chars

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 7 18:43:35 CEST 2022


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

--- Comment #33 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Tomás Cohen Arazi from comment #32)
> FTR: the JSON::encode_json and JSON::decode_json methods deal with UTF-8 [1]
> and I'm not sure why there's a ->utf8(0) being set.
> 
> Overall, I think we should go the bug 30943 path. Take UpdateElasticIndex
> (as tweaked by bug 30360) as a reference.

Please check the comments earlier. We should not do the UTF8 conversion in the
middle of the process but when storing only.
The uf8(0) is just a confirmation of using this default from the JSON OO
object. To make it explicit.

There were inconsistencies in the codebase that are addressed here. I would
recommend going further here. Moving to the helpers is fine of course.

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


More information about the Koha-bugs mailing list