Hi,

At Mon, 21 Sep 2009 09:29:01 +0900,
Nobuyoshi Nakada wrote in [ruby-core:25683]:
> > Ruby 1.8.x can round trip a binary file with pack and unpack to
> > base64.  Ruby 1.9 returns false.  Not sure why, googling and reading
> > books leads me to believe this should be true in every version, can
> > any shed some light on this?
> 
> Use binary mode.  It doesn't round trip on Windows even with
> 1.8.

Sorry, Windows isn't relevant.

Just there is no way to tell the original encoding from mime
encoded data at all.

-- 
Nobu Nakada