To get a unicode emoticon I do:
irb> "\u{1f384}"
=> "🎄"
but if I use a variable in the unicode I get the following error:
irb> d=4
=> 4
irb> "\u{1f38#{d}}"
(irb):11: unterminated Unicode escape
"\u{1f38#{d}}"
How to use string interpolation in unicode?