No subject
Mon Jul 7 17:18:21 NZST 2008
"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 at 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 at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
>
>
------=_Part_40225_1132530.1223490520369
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<div dir="ltr">This is almost surely a problem with UTF-8 handling. The error line is:<br><br><div style="margin-left: 40px;">my $isofile = encode_base64($iso2709);<br></div><br>From perldoc MIME::Base64:<br><br>"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."<br>
<br>And, specifically, regarding the error seen:<br><br>"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:"<br>
<br> use MIME::Base64 qw(encode_base64);<br> use Encode qw(encode);<br> $encoded = encode_base64(encode("UTF-8", "\x{FFFF}\n"));<br> print $encoded;"<br><br>
I will send a patch for review that attempts to follow this methodology.<br><br>--Joe Atzberger,<br>LibLime<br><br><div class="gmail_quote">On Wed, Oct 8, 2008 at 5:57 AM, Basu Talikoti <span dir="ltr"><<a href="mailto:basudpl at gmail.com">basudpl at gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"><h1>hi all</h1>
<div>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.</div>
<h1>Koha error</h1>
<p>The following fatal error has occurred:</p><pre><code>Wide character in subroutine entry at /usr/share/koha/opac/cgi-bin/opac/opac-sendbasket.pl line 132.
</code></pre>
<table>
<tbody>
<tr>
<th>Apache</th>
<td>Server version: Apache/2.2.3 Server built: Jan 15 2008 20:33:30 </td></tr>
<tr>
<th>Koha</th>
<td><a href="http://3.00.00.107" target="_blank">3.00.00.107</a></td></tr>
<tr>
<th>Koha DB</th>
<td>3.0000107</td></tr>
<tr>
<th>MySQL</th>
<td>mysql Ver 14.12 Distrib 5.0.45, for redhat-linux-gnu (i686) using readline 5.0 </td></tr>
<tr>
<th>OS</th>
<td>Linux <a href="http://dplcat.com" target="_blank">dplcat.com</a> 2.6.18-92.el5PAE #1 SMP Tue Jun 10 19:22:41 EDT 2008 i686 i686 i386 GNU/Linux </td></tr>
<tr>
<th>Perl</th>
<td>
<div>5.008008</div>
<div> </div>
<div> </div>
<div> </div>
<div>with regard</div>
<div>basu</div>
<div> </div></td></tr></tbody></table></div>
<br>_______________________________________________<br>
Koha mailing list<br>
<a href="mailto:Koha at lists.katipo.co.nz">Koha at lists.katipo.co.nz</a><br>
<a href="http://lists.katipo.co.nz/mailman/listinfo/koha" target="_blank">http://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
<br></blockquote></div><br></div>
------=_Part_40225_1132530.1223490520369--
More information about the Koha
mailing list