From: Phillip Gawlowski Date: 2011-09-11T03:05:07+09:00 Subject: Re: how to write data in binary to a file? On Sat, Sep 10, 2011 at 6:52 PM, Brian Candler wrote: > irb(main):005:0> f2.write("groß") > => 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. -- 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.               -- Leibniz