Ruby Output Unicode Character

前端 未结 5 1212
不思量自难忘°
不思量自难忘° 2020-12-24 05:18

I\'m not a Ruby dev by trade, but am using Capistrano for PHP deployments. I\'m trying to cleanup the output of my script and am trying to add a unicode check mark as discus

5条回答
  •  长情又很酷
    2020-12-24 06:03

    As an additional note, if you want to print an emoji, you have to surround it with braces.

    irb(main):001:0> "\u{1F600}"
    => "

提交回复
热议问题