http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2665 Summary: opac-sendbasket fails on UTF-8 Product: Koha Version: HEAD Platform: PC URL: /cgi-bin/koha/opac-sendbasket.pl OS/Version: All Status: NEW Severity: normal Priority: P3 Component: I18N/L10N AssignedTo: jmf@liblime.com ReportedBy: joe.atzberger@liblime.com QAContact: koha-bugs@lists.koha.org Characteristic error: Wide character in subroutine entry at /usr/share/koha/opac/cgi-bin/opac/opac-sendbasket.pl line 132. This is almost surely a problem with UTF-8 handling. The error line (132) is: my $isofile = encode_base64($iso2709); The encode_base64 function is form MIME::Base64. From perldoc MIME::Base64 regarding the error seen: "Wide character in subroutine entry: The string passed to encode_base64() contains characters with code above 255. The base64 encoding is only defined for single-byte characters. Use the Encode module to select the byte encoding you want.... Perl v5.8 and better allow extended Unicode characters in strings. Such strings cannot be encoded directly, as the base64 encoding is only defined for single-byte characters. The solution is to use the Encode module to select the byte encoding you want. For example:" use MIME::Base64 qw(encode_base64); use Encode qw(encode); $encoded = encode_base64(encode("UTF-8", "\x{FFFF}\n")); print $encoded;" I will send a patch for review that attempts to follow this methodology. ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.