From: Woody Peterson Date: 2010-07-31T06:26:33+09:00 Subject: Re: binary encode 7 (.pack("C")) as "\007" instead of "\a" > >> "\a" == "\007" > I'd guess you should be writing tests to verify instead of eyeballing > it. In Ruby "\a" == "\007", but when my integration test (incorrectly) converted the binary into escape sequences before sending it to erlang, *then*, in erlang, <<"\a">> =/= <<"\007">> (not-equal, and I have learned this is because Erlang uses the basic C set of character encodings, while Ruby uses the ANSI C encodings, which differ in at least this respect). So in my tests erlang -> ruby would work, but ruby -> erlang wouldn't work, and tests confirmed this to be due to character encoding differences (how I knew to ask the question). Those differences are verifiable, although the whole point is moot (and I feel stupid for asking because I should have been testing via binary in the first place :/ -- Posted via http://www.ruby-forum.com/.