From: Dave Thomas Date: 2008-01-12T02:29:34+09:00 Subject: Re: nil encoding as synonym for binary encoding On Jan 11, 2008, at 10:46 AM, Wolfgang N�dasi-Donner wrote: > 1) The "characters" of a binary encoding are the bytes. so... > "cat".force_encoding("binary)[1] # => "a" > ...should work like this. Even split should work bytewise. But how to you know it's ascii? It might be EBCDIC. Or, if the top bit is set, what encoding would you give the string? I think in this case it makes sense to return the integer byte value. Dave