[Koha-bugs] [Bug 21848] New: Handle encoding when calling Text::Unaccent::unac_string
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Nov 16 09:03:23 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21848
Bug ID: 21848
Summary: Handle encoding when calling
Text::Unaccent::unac_string
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: m.de.rooy at rijksmuseum.nl
QA Contact: testopia at bugs.koha-community.org
Triggered by running Circulation.t on bug 18677:
t/db_dependent/Circulation.t .. 1/121
unac_string: Invalid or incomplete multibyte or wide character
unac_string: Invalid or incomplete multibyte or wide character
Note that Text::Unaccent says:
Return the unaccented equivalent of the string $string. The character set of
$string is specified by the $charset argument. The returned string is coded
using the same character set.
The only place we call unac_string is: Koha::Patron->generate_userid:
$userid = unac_string('utf-8',$userid);
Since we say to unac_string that $userid is utf-8, we should first encode it
and the result we should decode again for further handling.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list