Skip Menu |
 

This queue is for tickets about the Encode CPAN distribution.

Report information
The Basics
Id: 29217
Status: resolved
Priority: 0/
Queue: Encode

People
Owner: Nobody in particular
Requestors: yneko [...] yamamaya.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.23
Fixed in: (no value)



Subject: Problem at decoding MIME-Header with ISO-8859-8
Download (untitled) / with headers
text/plain 398b
Decoding ISO-8859-8 (Hebrew) gets an error; Wide character in subroutine entry at .../Encode/MIME/Header.pm line 90. use encoding 'utf8', STDOUT => 'utf8' ; use Encode ; print decode( 'MIME-Header', '=?ISO-8859-8?Q? =E0=E1=E2=E3=E4=E5=E6=E7=E8?=' ), "\n" ; But, this works well. use Encode ; print encode_utf8( decode( 'MIME-Header', '=?ISO-8859-8?Q? =E0=E1=E2=E3=E4=E5=E6=E7=E8?=' ) ), "\n" ;
Download (untitled) / with headers
text/plain 663b
do not mix "use encoding 'utf8'" and "use Encode". "use encoding 'utf8'" makes "'=?ISO-8859-8?Q?=E0=E1=E2=E3=E4=E5=E6=E7=E8?=' utf8-flagged hence the problem. Dan the Encode Maintainer On Fri Sep 07 04:30:07 2007, YAMANEKO wrote: Show quoted text
> Decoding ISO-8859-8 (Hebrew) gets an error; > Wide character in subroutine entry at .../Encode/MIME/Header.pm line > 90. > > use encoding 'utf8', STDOUT => 'utf8' ; > use Encode ; > print decode( 'MIME-Header', '=?ISO-8859-8?Q? > =E0=E1=E2=E3=E4=E5=E6=E7=E8?=' ), "\n" ; > > > But, this works well. > > use Encode ; > print encode_utf8( decode( 'MIME-Header', '=?ISO-8859-8?Q? > =E0=E1=E2=E3=E4=E5=E6=E7=E8?=' ) ), "\n" ;


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.