[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Encoding problems with check_trans.pl

On Thu,18.Dec.08, 21:04:22, Andrei Popescu wrote:
> On Thu,18.Dec.08, 10:06:57, Bas Zoetekouw wrote:
> > Hmm, there was an ancient version of MIME::Lite embedded in the
> > repositry.  I've updated it now, but I doubt it makes any difference...
> > 
> > I also tried with sid just now and it works perfectly here (both with
> > the old and new MIME::Lite).  
> But why does the patch work (and what does encode() even do)?

Maybe this is related (from http://perldoc.perl.org/Encode.html)?

| CAVEAT: When you run $octets = encode("utf8", $string) , then $octets 
| may not be equal to $string. Though they both contain the same data, the 
| UTF8 flag for $octets is always off. When you encode anything, UTF8 flag 
| of the result is always off, even when it contains completely valid utf8 
| string. See "The UTF8 flag" below.

If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

Attachment: signature.asc
Description: Digital signature

Reply to: