hi all we are using centos operating system and koha 3, when you send list of book through email saved in basket, it give the following error kindly help in resolving the problem. Koha error The following fatal error has occurred: Wide character in subroutine entry at /usr/share/koha/opac/cgi-bin/opac/opac-sendbasket.pl line 132. Apache Server version: Apache/2.2.3 Server built: Jan 15 2008 20:33:30 Koha 3.00.00.107 Koha DB 3.0000107 MySQL mysql Ver 14.12 Distrib 5.0.45, for redhat-linux-gnu (i686) using readline 5.0 OS Linux dplcat.com2.6.18-92.el5PAE #1 SMP Tue Jun 10 19:22:41 EDT 2008 i686 i686 i386 GNU/Linux Perl 5.008008 with regard basu
This is almost surely a problem with UTF-8 handling. The error line is: my $isofile = encode_base64($iso2709);
From perldoc MIME::Base64:
"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." And, specifically, 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. --Joe Atzberger, LibLime On Wed, Oct 8, 2008 at 5:57 AM, Basu Talikoti <basudpl@gmail.com> wrote:
hi all we are using centos operating system and koha 3, when you send list of book through email saved in basket, it give the following error kindly help in resolving the problem. Koha error
The following fatal error has occurred:
Wide character in subroutine entry at /usr/share/koha/opac/cgi-bin/opac/opac-sendbasket.pl line 132.
Apache Server version: Apache/2.2.3 Server built: Jan 15 2008 20:33:30 Koha 3.00.00.107 Koha DB 3.0000107 MySQL mysql Ver 14.12 Distrib 5.0.45, for redhat-linux-gnu (i686) using readline 5.0 OS Linux dplcat.com2.6.18-92.el5PAE #1 SMP Tue Jun 10 19:22:41 EDT 2008 i686 i686 i386 GNU/Linux Perl 5.008008
with regard basu
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
participants (2)
-
Basu Talikoti -
Joe Atzberger