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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to