I have two macs, from one I can merrily type all the emoji I please into irb
, pry
, and so forth and deal with them just like any other string.
From a newer Mac that may have a few less custom encoding configurations, I cannot do this, and I'm unsure as to why.
$ ruby -v
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin14.0]
Here's an animated GIF of the issue:
And here's an animated GIF of irb working normally:
Any ideas on how to resolve this? I'm not an expert in Ruby's encoding settings (UTF, etc).