On Sat, Sep 10, 2011 at 6:52 PM, Brian Candler <b.candler / pobox.com> wrote:
> irb(main):005:0> f2.write("gro=DF")
> =3D> 5
>
> Normally, transcoding a UTF-8 string (which contains non-ASCII
> characters) to ASCII-8BIT would raise an exception:

You obviously aren't aware what Extended ASCII (aka ASCII 8bit) is.

Take a look at ISO 8859-1, and check what 11011111 encodes.

--=20
Phillip Gawlowski

phgaw.posterous.com | twitter.com/phgaw | gplus.to/phgaw

A method of solution is perfect if we can forsee from the start,
and even prove, that following that method we shall attain our aim.
=A0 =A0 =A0 =A0 =A0 =A0 =A0 -- Leibniz